Wireshark-dev: [Wireshark-dev] [PATCH] [Updated] packet-ssl.c: Use column fences on info field
From: Martin Warnes <[email protected]>
Date: Wed, 29 Nov 2006 18:32:59 +0000

Much simplified patch to use column fences on the COL_INFO field to
prevent sebsequent calls to the SSL dissector for the same packet
clearing the information placed by earlier calls. After each SSL record
is processed a col_set_fence() call is now issued to preserve what has
been written.

Thanks .. Martin

Index: packet-ssl.c
--- packet-ssl.c	(revision 20016)
+++ packet-ssl.c	(working copy)
@@ -742,6 +742,8 @@
         /* set up for next record in frame, if any */
         first_record_in_frame = FALSE;
+    if (check_col(pinfo->cinfo, COL_INFO)) 
+	col_set_fence(pinfo->cinfo, COL_INFO);
     tap_queue_packet(ssl_tap, pinfo, (gpointer)proto_ssl);