aboutsummaryrefslogtreecommitdiffstats
path: root/packet-snmp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>1999-10-25 20:50:19 +0000
committerGuy Harris <guy@alum.mit.edu>1999-10-25 20:50:19 +0000
commitd0844608c53054c00b28eeeb6b23f4c076e91abc (patch)
tree29a4d546f07104820b016baca911900db660c818 /packet-snmp.c
parent50dc9d07c8f4274ccdbafbe24e81ca3f2d6067aa (diff)
downloadwireshark-d0844608c53054c00b28eeeb6b23f4c076e91abc.tar.gz
wireshark-d0844608c53054c00b28eeeb6b23f4c076e91abc.tar.bz2
wireshark-d0844608c53054c00b28eeeb6b23f4c076e91abc.zip
The previous patch didn't fix code used only with the CMU SNMP library;
make the equivalent fix to that code. svn path=/trunk/; revision=927
Diffstat (limited to 'packet-snmp.c')
-rw-r--r--packet-snmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-snmp.c b/packet-snmp.c
index 9cda525498..6f3c0d1717 100644
--- a/packet-snmp.c
+++ b/packet-snmp.c
@@ -2,7 +2,7 @@
* Routines for SNMP (simple network management protocol)
* D.Jorand (c) 1998
*
- * $Id: packet-snmp.c,v 1.10 1999/10/24 07:36:20 guy Exp $
+ * $Id: packet-snmp.c,v 1.11 1999/10/25 20:50:19 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@unicom.net>
@@ -368,7 +368,7 @@ dissect_snmp(const u_char *pd, int offset, frame_data *fd, proto_tree *tree)
header_length=length;
/* parse the SNMP header */
- data = asn_parse_header( &pd[offset], &length, &type);
+ data = asn_parse_header((u_char*)&pd[offset], &length, &type);
if(NULL == data) {
dissect_snmp_error(pd, offset, fd, tree,
"Couldn't parse SNMP header");