summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-06-29 19:16:13 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:09:38 -0500
commitf47593a1463ed28a97c56a1c9c411c148ce21574 (patch)
treed41cce8703ffa96c69542ba17fa4b06bb3881a33 /source4
parentdf4d209b368e5e719f262c2bd80e381da5b0fff6 (diff)
downloadsamba-f47593a1463ed28a97c56a1c9c411c148ce21574.tar.gz
samba-f47593a1463ed28a97c56a1c9c411c148ce21574.tar.bz2
samba-f47593a1463ed28a97c56a1c9c411c148ce21574.zip
r16691: we should only look at rdata.data.length when we're in ndr_push mode
metze (This used to be commit 630d3d11a4d998c0006cb652c47837867ecb2824)
Diffstat (limited to 'source4')
-rw-r--r--source4/librpc/idl/nbt.idl4
1 files changed, 3 insertions, 1 deletions
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 {