Ethereal-dev: [Ethereal-dev] [patch] packet-hclnfsd.c

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

From: Mike Frisch <mfrisch@xxxxxxxxxx>
Date: Wed, 31 Jul 2002 15:02:03 -0400
The enclosed patch fixes a problem with decoding the AUTHORIZE call.
Index: packet-hclnfsd.c
===================================================================
RCS file: /cvsroot/ethereal/packet-hclnfsd.c,v
retrieving revision 1.14
diff -u -r1.14 packet-hclnfsd.c
--- packet-hclnfsd.c	2002/05/10 23:20:38	1.14
+++ packet-hclnfsd.c	2002/07/31 19:00:43
@@ -204,11 +204,11 @@
 				newoffset = dissect_rpc_string(tvb, ident_tree,
 					hf_hclnfsd_auth_ident_obscure, offset, &ident);
 
-				proto_item_set_len(ident_item, newoffset - offset);
-
 				if (ident)
 				{
-					ident_len = newoffset - offset;
+					ident_len = strlen(ident);
+
+					proto_item_set_len(ident_item, ident_len);
 
 					hclnfsd_decode_obscure(ident, ident_len);