diff options
Diffstat (limited to 'source4/pidl/lib/Parse/Pidl')
| -rw-r--r-- | source4/pidl/lib/Parse/Pidl/Samba4/EJS.pm | 6 | 
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/pidl/lib/Parse/Pidl/Samba4/EJS.pm b/source4/pidl/lib/Parse/Pidl/Samba4/EJS.pm index 41ea1e8eaa..91938c038e 100644 --- a/source4/pidl/lib/Parse/Pidl/Samba4/EJS.pm +++ b/source4/pidl/lib/Parse/Pidl/Samba4/EJS.pm @@ -450,7 +450,11 @@ sub EjsPushPointer($$$$$)  	my ($e, $l, $var, $name, $env) = @_;  	pidl "if (NULL == $var) {";  	indent; -	pidl "NDR_CHECK(ejs_push_null(ejs, v, $name));"; +	if ($l->{POINTER_TYPE} eq "ref") { +		pidl "return NT_STATUS_INVALID_PARAMETER_MIX;"; +	} else { +		pidl "NDR_CHECK(ejs_push_null(ejs, v, $name));"; +	}  	deindent;  	pidl "} else {";  	indent;  | 
