From: Nick Porter Date: Thu, 14 Apr 2022 08:23:37 +0000 (+0100) Subject: Check vb has been allocated. CID #1503940 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=429cb15e43d5657dfc173f1c507e9f151bc40aae;p=thirdparty%2Ffreeradius-server.git Check vb has been allocated. CID #1503940 --- diff --git a/src/modules/rlm_unbound/rlm_unbound.c b/src/modules/rlm_unbound/rlm_unbound.c index b0a218bc64c..1cb9fb5b711 100644 --- a/src/modules/rlm_unbound/rlm_unbound.c +++ b/src/modules/rlm_unbound/rlm_unbound.c @@ -191,7 +191,7 @@ static void xlat_unbound_callback(void *mydata, int rcode, void *packet, int pac fr_dbuff_out(&rdlength, &dbuff); RDEBUG4("RDLENGTH is %d", rdlength); - vb = fr_value_box_alloc_null(ur->out_ctx); + MEM(vb = fr_value_box_alloc_null(ur->out_ctx)); switch (ur->return_type) { case FR_TYPE_IPV4_ADDR: case FR_TYPE_IPV6_ADDR: