diff options
author | Guy Harris <guy@alum.mit.edu> | 2003-02-02 22:47:46 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2003-02-02 22:47:46 +0000 |
commit | 48c7ab1f05343741dd0ed5eb237b98b7f45acf07 (patch) | |
tree | 77b62ff0295a7f4ee51e35c90daf5f049daed681 /packet-dcerpc-samr.c | |
parent | 608e8c31f50c7a9ad239dddea2f9cd2de9c1b124 (diff) | |
download | wireshark-48c7ab1f05343741dd0ed5eb237b98b7f45acf07.tar.gz wireshark-48c7ab1f05343741dd0ed5eb237b98b7f45acf07.tar.bz2 wireshark-48c7ab1f05343741dd0ed5eb237b98b7f45acf07.zip |
Decorate one level up with the string in
"samr_dissect_pointer_UNICODE_STRING()".
Put in a comment asking why that routine exists.
svn path=/trunk/; revision=7067
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; } |