summaryrefslogtreecommitdiff
path: root/libcrypt/md5.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcrypt/md5.c')
-rw-r--r--libcrypt/md5.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libcrypt/md5.c b/libcrypt/md5.c
index f6e6709d7..66ff0d119 100644
--- a/libcrypt/md5.c
+++ b/libcrypt/md5.c
@@ -383,7 +383,10 @@ char * md5_crypt_r( const char *pw, const char *salt, struct crypt_data * data)
char *p = data->p;
const char *sp = data->sp;
const char *ep = data->ep;
- char *passwd = *data->KS;
+ char *passwd = data->key.b_data; /* This is a nice place where we can grab
+ a bit of reentrant space... I'd create
+ a separate field in struct crypt_data,
+ but this spot should do nicely... */
unsigned char final[17]; /* final[16] exists only to aid in looping */
int sl,pl,i,md5_magic_len,pw_len;
MD5_CTX ctx,ctx1;