If we get an unknown reply status, don't print a g_warning message -
authorGuy Harris <guy@alum.mit.edu>
Fri, 7 Jan 2011 00:26:57 +0000 (00:26 -0000)
committerGuy Harris <guy@alum.mit.edu>
Fri, 7 Jan 2011 00:26:57 +0000 (00:26 -0000)
just put the reply body, if any, into the protocol tree as a blob.  The
protocol tree will note that it's an unknown status.

svn path=/trunk/; revision=35414

epan/dissectors/packet-giop.c

index 8ce4c36a0a18ebdd0420e9eda322cffea1d378f9..5b3e67f830b6894dcc4afab964f1ebbb485f6d33 100644 (file)
@@ -2910,6 +2910,7 @@ dissect_reply_body (tvbuff_t *tvb, guint offset, packet_info *pinfo,
   guint sequence_length;
   gboolean exres = FALSE;               /* result of trying explicit dissectors */
   gchar * repoid = NULL;        /* Repositor ID looked up from  objkey */
+  gint reply_body_length;
 
   /*
    * comp_req_list stuff
@@ -3052,8 +3053,11 @@ dissect_reply_body (tvbuff_t *tvb, guint offset, packet_info *pinfo,
   }
 
   default:
-
-    g_warning("giop: Unknown reply status %i request_id = %u\n",reply_status, header->req_id);
+    reply_body_length = tvb_reported_length_remaining(tvb, offset);
+    if (reply_body_length >0)
+      proto_tree_add_text(tree, tvb, offset, -1,
+                          "Reply body (%d byte%s)", reply_body_length,
+                          plurality(reply_body_length, "", "s"));
 
     break;