diff options
Diffstat (limited to 'src/http_auth.c')
-rw-r--r-- | src/http_auth.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/http_auth.c b/src/http_auth.c index c8fba6c1..52614129 100644 --- a/src/http_auth.c +++ b/src/http_auth.c @@ -1226,6 +1226,7 @@ int http_auth_digest_generate_nonce(server *srv, mod_auth_plugin_data *p, buffer /* we assume sizeof(time_t) == 4 here, but if not it ain't a problem at all */ LI_ltostr(hh, srv->cur_ts); MD5_Update(&Md5Ctx, (unsigned char *)hh, strlen(hh)); + MD5_Update(&Md5Ctx, (unsigned char *)srv->entropy, sizeof(srv->entropy)); LI_ltostr(hh, rand()); MD5_Update(&Md5Ctx, (unsigned char *)hh, strlen(hh)); |