]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Parent the arg buffers correctly
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 30 Mar 2021 16:18:15 +0000 (17:18 +0100)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 30 Mar 2021 16:18:15 +0000 (17:18 +0100)
src/modules/rlm_redis_ippool/rlm_redis_ippool_tool.c

index 14245c88b573e129647081e86782f3ce7c1d3d3c..dd7caa5df318db7f976cadf643c4789d4bea6e57 100644 (file)
@@ -1335,7 +1335,7 @@ do { \
                fr_sbuff_t              out;
                fr_sbuff_uctx_talloc_t  tctx;
 
-               MEM(fr_sbuff_init_talloc(NULL, &out, &tctx, strlen(argv[1]), SIZE_MAX));
+               MEM(fr_sbuff_init_talloc(conf, &out, &tctx, strlen(argv[1]), SIZE_MAX));
                len = fr_value_str_unescape(&out,
                                            &FR_SBUFF_IN(argv[1], strlen(argv[1])), SIZE_MAX, '"');
                fr_sbuff_trim_talloc(&out, fr_sbuff_used(&out));        /* We don't want a NULL terminating byte */
@@ -1348,7 +1348,7 @@ do { \
                fr_sbuff_t              out;
                fr_sbuff_uctx_talloc_t  tctx;
 
-               MEM(fr_sbuff_init_talloc(NULL, &out, &tctx, strlen(argv[1]), SIZE_MAX));
+               MEM(fr_sbuff_init_talloc(conf, &out, &tctx, strlen(argv[1]), SIZE_MAX));
                len = fr_value_str_unescape(&out,
                                            &FR_SBUFF_IN(argv[2], strlen(argv[2])), SIZE_MAX, '"');
                fr_sbuff_trim_talloc(&out, fr_sbuff_used(&out));        /* We don't want a NULL terminating byte */