diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2003-02-02 22:47:46 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2003-02-02 22:47:46 +0000 |
commit | d73399d8cb6d98600bc2033025ccd1468e9083e0 (patch) | |
tree | 77b62ff0295a7f4ee51e35c90daf5f049daed681 /packet-dcerpc-samr.c | |
parent | 2d3231b79f9e7a0ff4484f94a45a061cc4ef77ae (diff) |
Decorate one level up with the string in
"samr_dissect_pointer_UNICODE_STRING()".
Put in a comment asking why that routine exists.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@7067 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-dcerpc-samr.c')
-rw-r--r-- | packet-dcerpc-samr.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/packet-dcerpc-samr.c b/packet-dcerpc-samr.c index 8a37ee8f87..e6a8304ef2 100644 --- a/packet-dcerpc-samr.c +++ b/packet-dcerpc-samr.c @@ -3,7 +3,7 @@ * Copyright 2001,2003 Tim Potter <tpot@samba.org> * 2002 Added all command dissectors Ronnie Sahlberg * - * $Id: packet-dcerpc-samr.c,v 1.70 2003/01/31 04:18:08 tpot Exp $ + * $Id: packet-dcerpc-samr.c,v 1.71 2003/02/02 22:47:46 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -665,6 +665,13 @@ samr_dissect_pointer_UNICODE_STRING(tvbuff_t *tvb, int offset, { dcerpc_info *di; + /* + * XXX - why does this exist? Why not just call + * "dissect_ndr_nt_UNICODE_STRING()"? + * + * Is it to arrange that offset not be aligned on a 4-byte + * boundary if "di->conformant_run" is true? + */ di=pinfo->private_data; if(di->conformant_run){ /*just a run to handle conformant arrays, nothing to dissect */ @@ -672,7 +679,7 @@ samr_dissect_pointer_UNICODE_STRING(tvbuff_t *tvb, int offset, } offset = dissect_ndr_nt_UNICODE_STRING(tvb, offset, pinfo, tree, drep, - di->hf_index, 0); + di->hf_index, 1); return offset; } |