From f47593a1463ed28a97c56a1c9c411c148ce21574 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 29 Jun 2006 19:16:13 +0000 Subject: r16691: we should only look at rdata.data.length when we're in ndr_push mode metze (This used to be commit 630d3d11a4d998c0006cb652c47837867ecb2824) --- source4/librpc/idl/nbt.idl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source4') diff --git a/source4/librpc/idl/nbt.idl b/source4/librpc/idl/nbt.idl index 32f069c8de..4c5a8a83f7 100644 --- a/source4/librpc/idl/nbt.idl +++ b/source4/librpc/idl/nbt.idl @@ -172,7 +172,9 @@ * for WACK replies */ #define NBT_RES_REC_LEVEL(rr_type, rdata) (\ - (((rr_type) == NBT_QTYPE_NETBIOS) && ((rdata).data.length == 2)) \ + (((rr_type) == NBT_QTYPE_NETBIOS) && \ + talloc_check_name(ndr, "struct ndr_push") && \ + ((rdata).data.length == 2)) \ ? 0 : rr_type) typedef [flag(LIBNDR_PRINT_ARRAY_HEX)] struct { -- cgit