summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2007-05-10 21:26:51 +0000
committerAntony Dovgal <tony2001@php.net>2007-05-10 21:26:51 +0000
commit5779f46bfdefe39bfc309a954e4ad2a10beebd77 (patch)
treebc465d7dfd337587d183b78afb65bfe5ea6b2859
parent098897f03e2c5b12cca5133b56cbf810608fb367 (diff)
downloadphp-git-5779f46bfdefe39bfc309a954e4ad2a10beebd77.tar.gz
MFB
-rw-r--r--ext/soap/php_http.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/soap/php_http.c b/ext/soap/php_http.c
index 160a204289..f2c8fba64d 100644
--- a/ext/soap/php_http.c
+++ b/ext/soap/php_http.c
@@ -465,10 +465,9 @@ try_again:
char HA1[33], HA2[33], response[33], cnonce[33], nc[9];
PHP_MD5_CTX md5ctx;
unsigned char hash[16];
- unsigned int ctx;
PHP_MD5Init(&md5ctx);
- snprintf(cnonce, sizeof(cnonce), "%d", php_rand_r(&ctx));
+ snprintf(cnonce, sizeof(cnonce), "%ld", php_rand(TSRMLS_C);
PHP_MD5Update(&md5ctx, (unsigned char*)cnonce, strlen(cnonce));
PHP_MD5Final(hash, &md5ctx);
make_digest(cnonce, hash);