diff options
author | sahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7> | 2002-06-16 13:50:51 +0000 |
---|---|---|
committer | sahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7> | 2002-06-16 13:50:51 +0000 |
commit | 0a0e1f60479c3a7819792ebf91f0867f0c4ff233 (patch) | |
tree | 0f30efd6e0c037e583458ac6a2bd992a5341d92a | |
parent | 338e8c183b72ffb062e83315565b2df9415dadfb (diff) |
ALIGN_TO_4_BYTES cleanup
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5683 f5534014-38df-0310-8fa8-9805f1628bb7
-rw-r--r-- | packet-dcerpc-browser.c | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/packet-dcerpc-browser.c b/packet-dcerpc-browser.c index 2324d7c8c4..37f754601e 100644 --- a/packet-dcerpc-browser.c +++ b/packet-dcerpc-browser.c @@ -2,7 +2,7 @@ * Routines for DCERPC Browser packet disassembly * Copyright 2001, Ronnie Sahlberg * - * $Id: packet-dcerpc-browser.c,v 1.5 2002/05/31 00:31:12 tpot Exp $ + * $Id: packet-dcerpc-browser.c,v 1.6 2002/06/16 13:50:51 sahlberg Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -186,17 +186,11 @@ dissect_browser_TYPE_2(tvbuff_t *tvb, int offset, char *drep) { guint32 level; - dcerpc_info *di; - - di=pinfo->private_data; - if(di->conformant_run){ - /* ALING_TO_4_BYTES below might eat bytes otherwise */ - return offset; - } /* this is really the union switch arm */ offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep, hf_browser_unknown_long, &level); + ALIGN_TO_4_BYTES; switch(level){ @@ -795,17 +789,11 @@ dissect_browser_TYPE_8(tvbuff_t *tvb, int offset, char *drep) { guint32 level; - dcerpc_info *di; - - di=pinfo->private_data; - if(di->conformant_run){ - /* ALING_TO_4_BYTES below might eat bytes otherwise */ - return offset; - } /* this is really the union switch arm */ offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep, hf_browser_unknown_long, &level); + ALIGN_TO_4_BYTES; switch(level){ |