Ethereal-dev: [Ethereal-dev] [PATCH] packet-snmp.c: Counter64 length

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Thomas Anders <thomas.anders@xxxxxxxxxxxxx>
Date: Mon, 17 May 2004 18:55:41 +0200
Referencing http://www.ethereal.com/lists/ethereal-users/200404/msg00236.html
the attached patch should fix the Counter64 "Length is x, should be 8" bug in
packet-snmp.c.

Any takers for the other issues?


+Thomas

--
Thomas Anders (thomas.anders at blue-cable.de)
--- packet-snmp.c.FCS	2004-01-24 06:16:40.000000000 +0100
+++ packet-snmp.c	2004-05-17 18:49:55.000000000 +0200
@@ -677,13 +677,6 @@
 			return buf;	/* it's not 4 bytes */
 		break;
 
-	case SNMP_COUNTER64:
-		/* Length has to be 8 bytes. */
-		buf = check_var_length(val_len, 8);
-		if (buf != NULL)
-			return buf;	/* it's not 8 bytes */
-		break;
-
 	default:
 		break;
 	}