From: Nick Porter Date: Tue, 2 Aug 2022 15:18:25 +0000 (+0100) Subject: Ensure tmpl cursor is cleared on failure X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b5cc41666274fecf6df25282ab494f4e51e7c36;p=thirdparty%2Ffreeradius-server.git Ensure tmpl cursor is cleared on failure --- diff --git a/src/lib/unlang/xlat_builtin.c b/src/lib/unlang/xlat_builtin.c index b8f0c457b09..75bd11fb355 100644 --- a/src/lib/unlang/xlat_builtin.c +++ b/src/lib/unlang/xlat_builtin.c @@ -2586,6 +2586,7 @@ static xlat_action_t xlat_func_pairs(TALLOC_CTX *ctx, fr_dcursor_t *out, if (unlikely(fr_pair_aprint(vb, &buff, NULL, vp) < 0)) { RPEDEBUG("Failed printing pair"); talloc_free(vb); + tmpl_dursor_clear(&cc); return XLAT_ACTION_FAIL; }