Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: [Wireshark-dev] [PATCH] packet-smb.c lock display

From: "Marco Strack" <mstrack@xxxxxxx>
Date: Thu, 21 Sep 2006 13:56:54 +0200
Hi,

the smb dissector displays lock requests in the "Locking AndX Request" as a vector of locks. It opens a tree branch "Locks" and appends the locks to this branch. Instead of adding "Lock" objects to this branch it added "Unlock" objects. Everything else is fine.


  
Index: epan/dissectors/packet-smb.c
===================================================================
--- epan/dissectors/packet-smb.c        (revision 19270)
+++ epan/dissectors/packet-smb.c        (working copy)
@@ -5137,7 +5137,7 @@
                        } else {
                                /* normal lock format */
                                litem = proto_tree_add_text(tr, tvb, offset, 10,
-                                       "Unlock");
+                                       "Lock");
                                ltree = proto_item_add_subtree(litem, ett_smb_unlock);

                                /* PID */






-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal f�r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
Index: epan/dissectors/packet-smb.c
===================================================================
--- epan/dissectors/packet-smb.c	(revision 19270)
+++ epan/dissectors/packet-smb.c	(working copy)
@@ -5137,7 +5137,7 @@
 			} else {
 				/* normal lock format */
 				litem = proto_tree_add_text(tr, tvb, offset, 10,
-					"Unlock");
+					"Lock");
 				ltree = proto_item_add_subtree(litem, ett_smb_unlock);
 
 				/* PID */