summaryrefslogtreecommitdiff
path: root/source3/aparser/templates/fn_end.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'source3/aparser/templates/fn_end.tpl')
-rw-r--r--source3/aparser/templates/fn_end.tpl4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/aparser/templates/fn_end.tpl b/source3/aparser/templates/fn_end.tpl
index df62f6c0ac..2275ec4e33 100644
--- a/source3/aparser/templates/fn_end.tpl
+++ b/source3/aparser/templates/fn_end.tpl
@@ -4,7 +4,9 @@ end:
return True;
fail:
- ZERO_STRUCTP(il);
+ if (UNMARSHALLING(ps)) {
+ ZERO_STRUCTP(il);
+ }
return False;
} /* @FUNCNAME@ */