diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2003-09-29 18:50:47 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2003-09-29 18:50:47 +0000 |
commit | 76c914ae20ca600893cbf790fe1c935b2db484a3 (patch) | |
tree | 75912746bfb6a7a9fcea5661f9c0e3bb46fb3d6e /packet-tacacs.c | |
parent | 6bcf89ea25a886c3618aa59e6156bbebf4e00123 (diff) |
From Emanuele Caratti:
just use "g_free()" to free the buffer in "md5_xor()", as it
doesn't throw exceptions;
temporarily #ifdef out "tacplus_acct_flags" pending the
arrival of code to dissect the TACACS+ accounting stuff.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8566 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-tacacs.c')
-rw-r--r-- | packet-tacacs.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/packet-tacacs.c b/packet-tacacs.c index 3e44aac4c1..f552b701d3 100644 --- a/packet-tacacs.c +++ b/packet-tacacs.c @@ -5,7 +5,7 @@ * Full Tacacs+ parsing with decryption by * Emanuele Caratti <wiz@iol.it> * - * $Id: packet-tacacs.c,v 1.28 2003/09/23 21:37:11 guy Exp $ + * $Id: packet-tacacs.c,v 1.29 2003/09/29 18:50:47 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -945,7 +945,6 @@ md5_xor( u_char *data, char *key, int data_len, u_char *session_id, u_char versi md5_buff = (md5_byte_t*)g_malloc(md5_len+MD5_LEN); - CLEANUP_PUSH( g_free, md5_buff ); mdp = md5_buff; *(guint32*)mdp = *(guint32*)session_id; @@ -974,5 +973,5 @@ md5_xor( u_char *data, char *key, int data_len, u_char *session_id, u_char versi md5_append(&mdcontext, md5_buff, md5_len); md5_finish(&mdcontext,hash); } - CLEANUP_CALL_AND_POP; + g_free( md5_buff ); } |