]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
fix more errors found by using -std=c23
authorAlan T. DeKok <aland@freeradius.org>
Thu, 23 Oct 2025 09:52:01 +0000 (11:52 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 24 Oct 2025 15:05:02 +0000 (17:05 +0200)
src/lib/server/virtual_servers.c
src/lib/unlang/xlat_builtin.c
src/protocols/tacacs/decode.c

index 4c1f8290e401818c18817b5426e4a4bd3e0a58df..b2f1ef5994fa244f8bc0296d664c246150ff07e2 100644 (file)
@@ -912,7 +912,7 @@ static int8_t listen_addr_cmp(void const *one, void const *two)
  */
 fr_listen_t *listen_find_any(fr_listen_t *li)
 {
-       if (!listen_addr_root) return false;
+       if (!listen_addr_root) return NULL;
 
        return fr_rb_find(listen_addr_root, li);
 }
index f37f45856b876a0f99206df2e71d6dedeb9f1a50..fbad2e502c191a120492f98d5b1514ce7a5ee8b1 100644 (file)
@@ -753,7 +753,7 @@ static xlat_action_t xlat_func_file_cat(TALLOC_CTX *ctx, fr_dcursor_t *out,
                goto fail;
        }
 
-       MEM(dst = fr_value_box_alloc(ctx, FR_TYPE_OCTETS, false));
+       MEM(dst = fr_value_box_alloc(ctx, FR_TYPE_OCTETS, NULL));
        fr_value_box_mem_alloc(dst, &buffer, dst, NULL, buf.st_size, true);
 
        len = read(fd, buffer, buf.st_size);
index 2b9c3eb6f44fdbe481a1645628907c77fcec29bd..21af4216b2e8d657c0db51493d4d1b72499c0658 100644 (file)
@@ -1076,7 +1076,7 @@ static ssize_t fr_tacacs_decode_proto(TALLOC_CTX *ctx, fr_pair_list_t *out, uint
        fr_assert(!dv || (dv->type == FR_TYPE_VENDOR));
 
        return fr_tacacs_decode(ctx, out, dv, data, data_len, NULL,
-                               test_ctx->secret, (talloc_array_length(test_ctx->secret)-1), false);
+                               test_ctx->secret, (talloc_array_length(test_ctx->secret)-1), NULL);
 }
 
 static int _encode_test_ctx(fr_tacacs_ctx_t *proto_ctx)