summaryrefslogtreecommitdiffhomepage
path: root/svr-authpasswd.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2004-08-12 16:41:58 +0000
committerMatt Johnston <matt@ucc.asn.au>2004-08-12 16:41:58 +0000
commit8e1ec24f55be1a9af2595a58bb4b805bebd7fa9d (patch)
tree0b54a905a49358adc37ce32e3e80239dd6ebd736 /svr-authpasswd.c
parent538bc5a09e8a7aa6fdc7f38f0bac649efd6bd264 (diff)
Merging in the changes from 0.41-0.43 main Dropbear tree
--HG-- extra : convert_revision : 4c3428781bc8faf0fd7cadd7099fbd7f4ea386e7
Diffstat (limited to 'svr-authpasswd.c')
-rw-r--r--svr-authpasswd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/svr-authpasswd.c b/svr-authpasswd.c
index 7c6c7b7..6f7c909 100644
--- a/svr-authpasswd.c
+++ b/svr-authpasswd.c
@@ -37,14 +37,14 @@
void svr_auth_password() {
#ifdef HAVE_SHADOW_H
- struct spwd *spasswd;
+ struct spwd *spasswd = NULL;
#endif
- char * passwdcrypt; /* the crypt from /etc/passwd or /etc/shadow */
- char * testcrypt; /* crypt generated from the user's password sent */
+ char * passwdcrypt = NULL; /* the crypt from /etc/passwd or /etc/shadow */
+ char * testcrypt = NULL; /* crypt generated from the user's password sent */
unsigned char * password;
unsigned int passwordlen;
- unsigned char changepw;
+ unsigned int changepw;
passwdcrypt = ses.authstate.pw->pw_passwd;
#ifdef HAVE_SHADOW_H