Ethereal-dev: [Ethereal-dev] SAMR bugfixes

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Ronnie Sahlberg" <sahlberg@xxxxxxxxxxxxxxxx>
Date: Fri, 8 Feb 2002 21:34:29 +1100
Hi list

attached is a small patch for samr and ndr pointers.

it fixes the following bugs:
* ndr pointers. dissect_ndr_pointer() always incremented offset by 4.
this fails if the pointer was not already 4byte aligned in the pdu.
* samr :   [out ref] **foo was previously not decoded properly.
This construct should be represented in NDR as
[toplevel ref pointer, is not stored in the bytestream, 0 bytes] [4 bytes,
embedded unique pointer][foo]
ref only refers to the first *, the second * is an embedded pointer and its
type is unique since unique is the
pointer default type.

plus some indentation changes.



Attachment: samr.patch
Description: Binary data