1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

r15220: Another attempt to fix the bug found by the IBM Checker

This commit is contained in:
Jelmer Vernooij 2006-04-24 18:18:20 +00:00 committed by Gerald (Jerry) Carter
parent f1da657d56
commit 9f79bfc05d

View File

@ -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;