summaryrefslogtreecommitdiffhomepage
path: root/svr-authpasswd.c
diff options
context:
space:
mode:
Diffstat (limited to 'svr-authpasswd.c')
-rw-r--r--svr-authpasswd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/svr-authpasswd.c b/svr-authpasswd.c
index 0153a53..9852ac6 100644
--- a/svr-authpasswd.c
+++ b/svr-authpasswd.c
@@ -52,7 +52,7 @@ void svr_auth_password() {
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;
+ char * password;
unsigned int passwordlen;
unsigned int changepw;
@@ -75,7 +75,7 @@ void svr_auth_password() {
password = buf_getstring(ses.payload, &passwordlen);
/* the first bytes of passwdcrypt are the salt */
- testcrypt = crypt((char*)password, passwdcrypt);
+ testcrypt = crypt(password, passwdcrypt);
m_burn(password, passwordlen);
m_free(password);