diff options
author | Michael Mann <mmann78@netscape.net> | 2013-05-21 12:54:08 +0000 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2013-05-21 12:54:08 +0000 |
commit | 236972983238b27ea853f12c76a35cd50b2e389d (patch) | |
tree | 6c5cf1764bc8ee9a4ea3c8e6b906f7b9dc7f0ed2 /epan/dissectors | |
parent | 24fe35173e4e5b67183666398acb6deb8c6c5b55 (diff) |
use ep_ allocated memory instead of g_ allocated.
svn path=/trunk/; revision=49478
Diffstat (limited to 'epan/dissectors')
-rw-r--r-- | epan/dissectors/packet-dcerpc-netlogon.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/epan/dissectors/packet-dcerpc-netlogon.c b/epan/dissectors/packet-dcerpc-netlogon.c index 2ba487b9fd..66b223d895 100644 --- a/epan/dissectors/packet-dcerpc-netlogon.c +++ b/epan/dissectors/packet-dcerpc-netlogon.c @@ -7898,7 +7898,7 @@ static const value_string seal_algs[] = { static int get_seal_key(const guint8 *session_key,int key_len,guint64 sequence,guint8* seal_key) { guint8 zeros[4]; - guint8 *buf = (guint8 *)g_malloc(key_len); + guint8 *buf = (guint8 *)ep_alloc(key_len); guint8 buf2[16]; guint8 zero_sk[16]; int i = 0; @@ -7911,11 +7911,9 @@ static int get_seal_key(const guint8 *session_key,int key_len,guint64 sequence,g } md5_hmac(zeros,4,buf,key_len,buf2); md5_hmac((guint8*)&sequence,8,buf2,16,seal_key); - g_free(buf); return 1; } else { - g_free(buf); return 0; } |