diff options
author | Tim Potter <tpot@samba.org> | 2003-11-15 05:15:40 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2003-11-15 05:15:40 +0000 |
commit | 7290260c1addcaa76da02a663f14ce4be790b13b (patch) | |
tree | ee423d4030709975abd84864c21c92c641d338ab /source4/build/pidl | |
parent | 099899a7cc01fab5faba82e59650aa76bac8143e (diff) | |
download | samba-7290260c1addcaa76da02a663f14ce4be790b13b.tar.gz samba-7290260c1addcaa76da02a663f14ce4be790b13b.tar.bz2 samba-7290260c1addcaa76da02a663f14ce4be790b13b.zip |
Fix bug in generation of function ndr_pull code generation. This patch
makes the code symmetric with the ndr_push code.
(This used to be commit 4a6f192ff8396c644520050041a740856d72d40b)
Diffstat (limited to 'source4/build/pidl')
-rw-r--r-- | source4/build/pidl/parser.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/build/pidl/parser.pm b/source4/build/pidl/parser.pm index 71c64cb5f7..ec747f33b5 100644 --- a/source4/build/pidl/parser.pm +++ b/source4/build/pidl/parser.pm @@ -724,7 +724,9 @@ sub ParseFunctionPush($) $res .= "\t}\n"; } else { ParseElementPushScalar($e, "r->in.", "NDR_SCALARS|NDR_BUFFERS"); - ParseElementPushBuffer($e, "r->in.", "NDR_SCALARS|NDR_BUFFERS"); + if ($e->{POINTERS}) { + ParseElementPushBuffer($e, "r->in.", "NDR_SCALARS|NDR_BUFFERS"); + } } } } |