Ethereal-dev: [Ethereal-dev] [patch] minor bug fix for stun dissector error attribute

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

From: Jon Ringle <ml-ethereal@xxxxxxxxxx>
Date: Mon, 24 Jan 2005 16:55:51 -0500
Hello,

Please commit this bug fix to the stun ERROR-CODE dissecting.

Thanks,

Jon
Index: epan/dissectors/packet-stun.c
===================================================================
--- epan/dissectors/packet-stun.c	(revision 13115)
+++ epan/dissectors/packet-stun.c	(working copy)
@@ -267,7 +267,7 @@
 					proto_tree_add_item(att_tree, stun_att_error_number, tvb, offset+3, 1, FALSE);
 					if (att_length < 5)
 						break;
-					proto_tree_add_item(att_tree, stun_att_error_reason, tvb, offset+8, (att_length-4), FALSE);
+					proto_tree_add_item(att_tree, stun_att_error_reason, tvb, offset+4, (att_length-4), FALSE);
 					break;
 				
 				case UNKNOWN_ATTRIBUTES: