blob: e6758c85e4cd4757d93dc09615dbb33af0389f35 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
Description: Fix a bug in checking a memory allocation's result.
Author: Peter Pentchev <roam@FreeBSD.org>
Forwarded: http://sourceforge.net/mailarchive/message.php?msg_name=20090910102100.GA26539%40straylight.m.ringlet.net
Last-Update: 2009-09-10
--- lib/mhash.c.orig
+++ lib/mhash.c
@@ -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);
|