aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-3com-njack.c
diff options
context:
space:
mode:
authorsahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7>2006-08-21 13:00:55 +0000
committersahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7>2006-08-21 13:00:55 +0000
commitdf7674182eade1c7ac67d18cbd26151ff7e98f8a (patch)
tree5a0ffdecd98b40005bb425a8d1abfadfb6f94ece /epan/dissectors/packet-3com-njack.c
parent114eb3ee33c1284bc69c2354cf9b7050e14a2c1a (diff)
move a few arrays off the stack
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18972 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-3com-njack.c')
-rw-r--r--epan/dissectors/packet-3com-njack.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/epan/dissectors/packet-3com-njack.c b/epan/dissectors/packet-3com-njack.c
index c0765c721b..d6524fcfed 100644
--- a/epan/dissectors/packet-3com-njack.c
+++ b/epan/dissectors/packet-3com-njack.c
@@ -57,6 +57,7 @@ Specs:
#include <glib.h>
#include <epan/packet.h>
+#include <epan/emem.h>
/* protocol handles */
static int proto_njack = -1;
@@ -520,12 +521,14 @@ verify_password(tvbuff_t *tvb, const char *password)
gboolean is_valid = TRUE;
const guint8 *packetdata;
guint32 length;
- guint8 workbuffer[32];
+ guint8 *workbuffer;
guint i;
guint8 byte;
md5_state_t md_ctx;
- md5_byte_t digest[16];
+ md5_byte_t *digest;
+ workbuffer=ep_alloc(32);
+ digest=ep_alloc(16);
length = tvb_get_ntohs(tvb, 6);
packetdata = tvb_get_ptr(tvb, 0, length);