From: James Jones Date: Thu, 16 Mar 2023 14:30:08 +0000 (-0500) Subject: Check fr_internal_encode_list() return in mod_encode() (#4930) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=235dff41601781bd2097b714731481a5fda4e767;p=thirdparty%2Ffreeradius-server.git Check fr_internal_encode_list() return in mod_encode() (#4930) --- diff --git a/src/listen/ldap_sync/proto_ldap_sync.c b/src/listen/ldap_sync/proto_ldap_sync.c index 96e0b788450..76a9310db33 100644 --- a/src/listen/ldap_sync/proto_ldap_sync.c +++ b/src/listen/ldap_sync/proto_ldap_sync.c @@ -228,7 +228,7 @@ static ssize_t mod_encode(UNUSED void const *instance, request_t *request, uint8 } send: - fr_internal_encode_list(&dbuff, &pairs, NULL); + if (fr_internal_encode_list(&dbuff, &pairs, NULL) < 0) goto error; talloc_free(local); return fr_dbuff_used(&dbuff);