]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
memory allocation. CID #1421314
authorAlan T. DeKok <aland@freeradius.org>
Fri, 17 Nov 2017 22:53:51 +0000 (17:53 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 17 Nov 2017 22:53:51 +0000 (17:53 -0500)
src/modules/rlm_sqlippool/rlm_sqlippool.c

index bdc0f8b184419b16e239edab4d95e09499e87671..3cef9bd537714657b8b8bade31cdc646323a2cb2 100644 (file)
@@ -559,7 +559,7 @@ static rlm_rcode_t CC_HINT(nonnull) mod_post_auth(void *instance, UNUSED void *t
         *      See if we can create the VP from the returned data.  If not,
         *      error out.  If so, add it to the list.
         */
-       vp = fr_pair_afrom_da(request->reply, inst->framed_ip_address);
+       MEM(vp = fr_pair_afrom_da(request->reply, inst->framed_ip_address));
        if (fr_pair_value_from_str(vp, allocation, allocation_len) < 0) {
                DO_PART(allocate_commit);