From: Alan T. DeKok Date: Fri, 19 Nov 2021 21:28:49 +0000 (-0500) Subject: set output on success, not on error X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f03520dfff89809b8a41eda1dea2d41cd6d1b94;p=thirdparty%2Ffreeradius-server.git set output on success, not on error --- diff --git a/src/lib/util/sbuff.c b/src/lib/util/sbuff.c index 14a02c5453f..78e1c1c22e7 100644 --- a/src/lib/util/sbuff.c +++ b/src/lib/util/sbuff.c @@ -1253,9 +1253,9 @@ fr_slen_t fr_sbuff_out_##_name(fr_sbuff_parse_error_t *err, _type *out, fr_sbuff } \ if (no_trailing && (*end != '\0')) { \ if (err) *err = FR_SBUFF_PARSE_ERROR_TRAILING; \ - *out = res; \ return fr_sbuff_error(&our_in); \ } \ + *out = res; \ return fr_sbuff_advance(in, end - buff); \ }