From: Arran Cudbard-Bell Date: Mon, 27 Jul 2020 19:04:52 +0000 (-0400) Subject: sbuff: Trim talloced buffers X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06eb899b2fc2b76833ec85169cd94faab7da8d9f;p=thirdparty%2Ffreeradius-server.git sbuff: Trim talloced buffers --- diff --git a/src/lib/util/sbuff.h b/src/lib/util/sbuff.h index 39d22194fca..de8b4c9d65c 100644 --- a/src/lib/util/sbuff.h +++ b/src/lib/util/sbuff.h @@ -733,6 +733,7 @@ do { \ talloc_free(sbuff.buff); \ return 0; \ } \ + fr_sbuff_trim_talloc(&sbuff, SIZE_MAX); \ *out = sbuff.buff; \ return (size_t)slen; \ }