aboutsummaryrefslogtreecommitdiffstats
path: root/packet-dcerpc-samr.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-04-22 02:04:37 +0000
committerGuy Harris <guy@alum.mit.edu>2002-04-22 02:04:37 +0000
commit99af2a979873ebc028f6c395f727a089a1c4490f (patch)
treefc623c7f1d9fb022ac5027a816475933ea50edee /packet-dcerpc-samr.c
parentc64fb4b223f715d97eaf03c5862761913d840619 (diff)
downloadwireshark-99af2a979873ebc028f6c395f727a089a1c4490f.tar.gz
wireshark-99af2a979873ebc028f6c395f727a089a1c4490f.tar.bz2
wireshark-99af2a979873ebc028f6c395f727a089a1c4490f.zip
Fix "samr_dissect_query_information_alias_reply()" to dissect the
ALIAS_INFO structure before the status. svn path=/trunk/; revision=5215
Diffstat (limited to 'packet-dcerpc-samr.c')
-rw-r--r--packet-dcerpc-samr.c34
1 files changed, 19 insertions, 15 deletions
diff --git a/packet-dcerpc-samr.c b/packet-dcerpc-samr.c
index f29b8e88b2..870163c673 100644
--- a/packet-dcerpc-samr.c
+++ b/packet-dcerpc-samr.c
@@ -3,7 +3,7 @@
* Copyright 2001, Tim Potter <tpot@samba.org>
* 2002 Added all command dissectors Ronnie Sahlberg
*
- * $Id: packet-dcerpc-samr.c,v 1.33 2002/04/22 00:09:21 guy Exp $
+ * $Id: packet-dcerpc-samr.c,v 1.34 2002/04/22 02:04:37 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -1285,20 +1285,6 @@ samr_dissect_query_information_alias_rqst(tvbuff_t *tvb, int offset,
}
static int
-samr_dissect_query_information_alias_reply(tvbuff_t *tvb, int offset,
- packet_info *pinfo,
- proto_tree *tree, char *drep)
-{
- if (check_col(pinfo->cinfo, COL_INFO))
- col_set_str(pinfo->cinfo, COL_INFO, "QueryAliasInfo response");
-
- offset = dissect_ntstatus(tvb, offset, pinfo, tree, drep,
- hf_samr_rc, NULL);
-
- return offset;
-}
-
-static int
samr_dissect_ALIAS_INFO_1 (tvbuff_t *tvb, int offset,
packet_info *pinfo, proto_tree *tree,
char *drep)
@@ -1365,6 +1351,24 @@ samr_dissect_ALIAS_INFO_ptr(tvbuff_t *tvb, int offset,
}
static int
+samr_dissect_query_information_alias_reply(tvbuff_t *tvb, int offset,
+ packet_info *pinfo,
+ proto_tree *tree, char *drep)
+{
+ if (check_col(pinfo->cinfo, COL_INFO))
+ col_set_str(pinfo->cinfo, COL_INFO, "QueryAliasInfo response");
+
+ offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep,
+ samr_dissect_ALIAS_INFO_ptr, NDR_POINTER_REF,
+ "", -1, 0);
+
+ offset = dissect_ntstatus(tvb, offset, pinfo, tree, drep,
+ hf_samr_rc, NULL);
+
+ return offset;
+}
+
+static int
samr_dissect_set_information_alias_rqst(tvbuff_t *tvb, int offset,
packet_info *pinfo, proto_tree *tree,
char *drep)