aboutsummaryrefslogtreecommitdiffstats
path: root/packet-quake.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-12-02 08:41:08 +0000
committerGuy Harris <guy@alum.mit.edu>2000-12-02 08:41:08 +0000
commit0ab8e159b913cf0537df6b407c4cabac9fe196e7 (patch)
tree459183fb6c07494e3982e6837363d3e4b8f2ba19 /packet-quake.c
parent75acffe70c5a17c20324094c15397ff60a8641de (diff)
Some tvbuffified dissectors weren't setting "pinfo->current_proto", so
that if they threw an exception, the wrong protocol would be blamed. Add the missing assignments. Clean up the extraction of the null-encapsulation header. svn path=/trunk/; revision=2730
Diffstat (limited to 'packet-quake.c')
-rw-r--r--packet-quake.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/packet-quake.c b/packet-quake.c
index 8162c4b5c9..9679018441 100644
--- a/packet-quake.c
+++ b/packet-quake.c
@@ -4,7 +4,7 @@
* Uwe Girlich <uwe@planetquake.com>
* http://www.idsoftware.com/q1source/q1source.zip
*
- * $Id: packet-quake.c,v 1.9 2000/11/19 08:54:04 guy Exp $
+ * $Id: packet-quake.c,v 1.10 2000/12/02 08:41:08 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -518,6 +518,8 @@ dissect_quake(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
CHECK_DISPLAY_AS_DATA(proto_quake, tvb, pinfo, tree);
+ pinfo->current_proto = "QUAKE";
+
if (!tvb_bytes_exist(tvb, 0, 4)) return;
length = tvb_get_ntohl(tvb, 0);