From ddbd7bed65fbe404c171c58aef6f2f28c05f186d Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 24 Apr 2006 18:18:20 +0000 Subject: r15220: Another attempt to fix the bug found by the IBM Checker (This used to be commit 9f79bfc05d456c106cca44ee459eb542273c3a0c) --- source4/pidl/lib/Parse/Pidl/Samba4/EJS.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source4/pidl/lib/Parse/Pidl/Samba4/EJS.pm b/source4/pidl/lib/Parse/Pidl/Samba4/EJS.pm index 91938c038e..550499a5f3 100644 --- a/source4/pidl/lib/Parse/Pidl/Samba4/EJS.pm +++ b/source4/pidl/lib/Parse/Pidl/Samba4/EJS.pm @@ -154,7 +154,11 @@ sub EjsPullPointer($$$$$) my ($e, $l, $var, $name, $env) = @_; pidl "if (ejs_pull_null(ejs, v, $name)) {"; indent; - pidl "$var = NULL;"; + if ($l->{POINTER_TYPE} eq "ref") { + pidl "return NT_STATUS_INVALID_PARAMETER_MIX;"; + } else { + pidl "$var = NULL;"; + } deindent; pidl "} else {"; indent; -- cgit