From 236972983238b27ea853f12c76a35cd50b2e389d Mon Sep 17 00:00:00 2001 From: Michael Mann Date: Tue, 21 May 2013 12:54:08 +0000 Subject: use ep_ allocated memory instead of g_ allocated. svn path=/trunk/; revision=49478 --- epan/dissectors/packet-dcerpc-netlogon.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'epan/dissectors/packet-dcerpc-netlogon.c') 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; } -- cgit v1.2.3