diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-05-09 09:49:34 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-05-09 09:49:34 +0000 |
commit | 94f3f3479e5c9ee9c2c059bbebc8b1329e836d94 (patch) | |
tree | 177a1c25d2e4718070e1cf9d19513b3a398af020 /packet-dcerpc-samr.c | |
parent | c5312df0953f7f3d7b05922c356d26ced0d216c5 (diff) |
As Ronnie Sahlberg notes, the problem is that the QueryDomainInfo
response starts with a UNIQUE pointer to a DOMAIN_INFO, not with a REF
pointer to a DOMAIN_INFO - and also not with a UNIQUE pointer to a
DOMAIN_INFO REF pointer; fix the code to match that.
svn path=/trunk/; revision=5427
Diffstat (limited to 'packet-dcerpc-samr.c')
-rw-r--r-- | packet-dcerpc-samr.c | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/packet-dcerpc-samr.c b/packet-dcerpc-samr.c index a740bc6da6..29af1288ee 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.42 2002/05/09 08:36:45 guy Exp $ + * $Id: packet-dcerpc-samr.c,v 1.43 2002/05/09 09:49:34 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -1994,17 +1994,6 @@ samr_dissect_DOMAIN_INFO(tvbuff_t *tvb, int offset, } static int -samr_dissect_DOMAIN_INFO_ptr(tvbuff_t *tvb, int offset, - packet_info *pinfo, proto_tree *tree, - char *drep) -{ - offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep, - samr_dissect_DOMAIN_INFO, NDR_POINTER_UNIQUE, - "DOMAIN_INFO pointer", hf_samr_domain, 0); - return offset; -} - -static int samr_dissect_set_information_domain_rqst(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, char *drep) @@ -4064,8 +4053,8 @@ samr_dissect_query_information_domain_reply(tvbuff_t *tvb, int offset, char *drep) { offset = dissect_ndr_pointer(tvb, offset, pinfo, tree, drep, - samr_dissect_DOMAIN_INFO_ptr, NDR_POINTER_REF, - "", hf_samr_domain, 0); + samr_dissect_DOMAIN_INFO, NDR_POINTER_UNIQUE, + "DOMAIN_INFO pointer", hf_samr_domain, 0); offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep, hf_samr_rc, NULL); |