From: Alan T. DeKok Date: Thu, 20 Feb 2025 18:54:49 +0000 (-0500) Subject: check return code. CID #1642921 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70aa3a3db1b610ca18634ea748697faeea700efb;p=thirdparty%2Ffreeradius-server.git check return code. CID #1642921 --- diff --git a/src/lib/tls/bio.c b/src/lib/tls/bio.c index cb3b6a5bcef..5a5b200243e 100644 --- a/src/lib/tls/bio.c +++ b/src/lib/tls/bio.c @@ -197,7 +197,7 @@ char *fr_tls_bio_dbuff_finalise_bstr(fr_tls_bio_dbuff_t *bd) if (unlikely(!bd)) return NULL; if (unlikely(!bd->dbuff_in.buff)) return NULL; - fr_dbuff_in_bytes(&bd->dbuff_in, 0x00); + if (fr_dbuff_in_bytes(&bd->dbuff_in, 0x00) <= 0) return NULL; fr_dbuff_trim_talloc(&bd->dbuff_in, SIZE_MAX); buff = bd->dbuff_in.buff;