diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-03-08 22:24:47 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:11:00 -0500 |
commit | 1bbaa12437f3703728a4755c49a14ecdabbbd7da (patch) | |
tree | 58154074e3b8cb415885c04a0065582c88ff7f7c | |
parent | bbb69c5a7a140813151942fd96f53585e6033099 (diff) | |
download | samba-1bbaa12437f3703728a4755c49a14ecdabbbd7da.tar.gz samba-1bbaa12437f3703728a4755c49a14ecdabbbd7da.tar.bz2 samba-1bbaa12437f3703728a4755c49a14ecdabbbd7da.zip |
r5697: Give an error message when a ref pointer is NULL (requested by tpot)
(This used to be commit 7ecc2e6130d7f284906cbc50dda86c742f139fae)
-rw-r--r-- | source4/build/pidl/ndr.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/build/pidl/ndr.pm b/source4/build/pidl/ndr.pm index ac65f16d95..fce7f26f93 100644 --- a/source4/build/pidl/ndr.pm +++ b/source4/build/pidl/ndr.pm @@ -1793,6 +1793,9 @@ sub ParseFunctionPush($) foreach my $e (@{$fn->{ELEMENTS}}) { if (util::has_property($e, "in")) { + if (util::has_property($e, "ref")) { + check_null_pointer("*r->in.$e->{NAME}"); + } ParseFunctionElementPush($e, "in"); } } @@ -1803,6 +1806,9 @@ sub ParseFunctionPush($) foreach my $e (@{$fn->{ELEMENTS}}) { if (util::has_property($e, "out")) { + if (util::has_property($e, "ref")) { + check_null_pointer("*r->out.$e->{NAME}"); + } ParseFunctionElementPush($e, "out"); } } |