mirror of
https://github.com/samba-team/samba.git
synced 2025-08-26 01:49:31 +03:00
pidl:NDR/Parser: initialize [skip] values in ndr_pull_*
It's too dangerous to leave values uninitialzed! [skip_noinit] can be used if required. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
This commit is contained in:
@ -1128,6 +1128,9 @@ sub ParseElementPullLevel
|
||||
|
||||
if (has_property($e, "skip") or has_property($e, "skip_noinit")) {
|
||||
$self->pidl("/* [skip] '$var_name' */");
|
||||
if (not has_property($e, "skip_noinit")) {
|
||||
$self->pidl("ZERO_STRUCT($var_name);");
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user