]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Let not used
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 31 Mar 2021 15:25:33 +0000 (16:25 +0100)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 31 Mar 2021 15:25:33 +0000 (16:25 +0100)
src/modules/rlm_redis_ippool/rlm_redis_ippool_tool.c

index 6f7098664b02be94f067e525a392b2c9b18fb536..3179c55d0a14d761e1b0d45bd4e7426c15f95280 100644 (file)
@@ -1335,25 +1335,23 @@ do { \
         *      Unescape sequences in the pool name
         */
        if (argv[1] && (argv[1][0] != '\0')) {
-               size_t                  len;
                fr_sbuff_t              out;
                fr_sbuff_uctx_talloc_t  tctx;
 
                MEM(fr_sbuff_init_talloc(conf, &out, &tctx, strlen(argv[1]) + 1, SIZE_MAX));
-               len = fr_value_str_unescape(&out,
-                                           &FR_SBUFF_IN(argv[1], strlen(argv[1])), SIZE_MAX, '"');
+               (void) fr_value_str_unescape(&out,
+                                            &FR_SBUFF_IN(argv[1], strlen(argv[1])), SIZE_MAX, '"');
                talloc_realloc(conf, out.buff, uint8_t, fr_sbuff_used(&out));
                pool_arg = (uint8_t *)out.buff;
        }
 
        if (argc >= 3 && (argv[2][0] != '\0')) {
-               size_t                  len;
                fr_sbuff_t              out;
                fr_sbuff_uctx_talloc_t  tctx;
 
                MEM(fr_sbuff_init_talloc(conf, &out, &tctx, strlen(argv[1]) + 1, SIZE_MAX));
-               len = fr_value_str_unescape(&out,
-                                           &FR_SBUFF_IN(argv[2], strlen(argv[2])), SIZE_MAX, '"');
+               (void) fr_value_str_unescape(&out,
+                                            &FR_SBUFF_IN(argv[2], strlen(argv[2])), SIZE_MAX, '"');
                talloc_realloc(conf, out.buff, uint8_t, fr_sbuff_used(&out));
                range_arg = (uint8_t *)out.buff;
        }