From: Nick Porter Date: Mon, 11 Dec 2023 20:20:41 +0000 (+0000) Subject: Check return (CID #1559169) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32a31b08ea99fd9538d5eb754f574998ce41a968;p=thirdparty%2Ffreeradius-server.git Check return (CID #1559169) --- diff --git a/src/listen/ldap_sync/proto_ldap_sync_ldap.c b/src/listen/ldap_sync/proto_ldap_sync_ldap.c index 6f80b2fc6bd..f63ecb2c40e 100644 --- a/src/listen/ldap_sync/proto_ldap_sync_ldap.c +++ b/src/listen/ldap_sync/proto_ldap_sync_ldap.c @@ -777,7 +777,7 @@ static int proto_ldap_cookie_load_send(TALLOC_CTX *ctx, proto_ldap_sync_ldap_t c fr_ldap_connection_t *ldap_conn = thread->conn->h; fr_pair_list_init(&pairs); - fr_pair_list_copy(ctx, &pairs, &config->sync_pairs); + if (unlikely(fr_pair_list_copy(ctx, &pairs, &config->sync_pairs) < 0)) return -1; /* * Ensure we have access to the thread instance