comparison svr-authpam.c @ 179:161557a9dde8

* fix longstanding bug with connections being closed on failure to connect to auth socket (server) * differentiate between get_byte and get_bool * get rid of some // comments * general tidying
author Matt Johnston <matt@ucc.asn.au>
date Sun, 13 Mar 2005 13:58:14 +0000
parents 21e99b6190dd
children 9a9c6d633972
comparison
equal deleted inserted replaced
178:058cc7892636 179:161557a9dde8
153 153
154 int rc = PAM_SUCCESS; 154 int rc = PAM_SUCCESS;
155 unsigned char changepw; 155 unsigned char changepw;
156 156
157 /* check if client wants to change password */ 157 /* check if client wants to change password */
158 changepw = buf_getbyte(ses.payload); 158 changepw = buf_getbool(ses.payload);
159 if (changepw) { 159 if (changepw) {
160 /* not implemented by this server */ 160 /* not implemented by this server */
161 send_msg_userauth_failure(0, 1); 161 send_msg_userauth_failure(0, 1);
162 goto cleanup; 162 goto cleanup;
163 } 163 }