diff options
| author | Peter Pentchev <roam@FreeBSD.org> | 2008-01-16 15:46:05 +0000 |
|---|---|---|
| committer | Peter Pentchev <roam@FreeBSD.org> | 2008-01-16 15:46:05 +0000 |
| commit | d9983ccbfaaedc5fba6456549dabee4f713d8403 (patch) | |
| tree | 7c93c7b77f036d92775f1d912aadf0e3bb8cedfc /security/mhash/files/patch-lib-mhash.c | |
| parent | - Update HPN patch to hpn12v20 (diff) | |
Update to mhash-0.9.9, fixing several style issues, lots of memory
leaks, and two serious (even if not easily triggered) bugs.
Notes
Notes:
svn path=/head/; revision=205725
Diffstat (limited to 'security/mhash/files/patch-lib-mhash.c')
| -rw-r--r-- | security/mhash/files/patch-lib-mhash.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/security/mhash/files/patch-lib-mhash.c b/security/mhash/files/patch-lib-mhash.c new file mode 100644 index 000000000000..259133ef6688 --- /dev/null +++ b/security/mhash/files/patch-lib-mhash.c @@ -0,0 +1,12 @@ +diff -urN -x .svn ../../branches/vendor/mhash/lib/mhash.c ./lib/mhash.c +--- ../../branches/vendor/mhash/lib/mhash.c 2008-01-16 14:26:51.000000000 +0200 ++++ ./lib/mhash.c 2008-01-16 15:22:29.000000000 +0200 +@@ -299,7 +299,7 @@ + { + ret->hmac_key = (mutils_word8 *) mutils_malloc(ret->hmac_key_size); + +- if (ret == NULL) ++ if (ret->hmac_key == NULL) + { + mutils_free(ret->state); + mutils_free(ret); |
