Skip to content

Commit 361a68b

Browse files
committed
only complain if the user sets "interface = foo"
1 parent 7951b60 commit 361a68b

File tree

4 files changed

+5
-2565
lines changed

4 files changed

+5
-2565
lines changed

src/lib/bio/fd_open.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -684,6 +684,8 @@ static int fr_bio_fd_socket_bind_to_device(fr_bio_fd_t *my, UNUSED fr_bio_fd_con
684684
*/
685685
static int fr_bio_fd_socket_bind_to_device(fr_bio_fd_t *my, fr_bio_fd_config_t const *cfg)
686686
{
687+
if (!my->info.socket.inet.ifindex) return 0;
688+
687689
fr_strerror_const("Bind to interface is not supported on this platform");
688690
return -1;
689691
}

src/modules/rlm_radius/bio.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616

1717
/**
1818
* $Id$
19-
* @file rlm_radius_udp.c
20-
* @brief RADIUS UDP transport
19+
* @file src/modules/rlm_radius/bio.c
20+
* @brief RADIUS BIO transport
2121
*
2222
* @copyright 2017 Network RADIUS SAS
2323
* @copyright 2020 Arran Cudbard-Bell ([email protected])
@@ -846,7 +846,7 @@ static void conn_close(UNUSED fr_event_list_t *el, void *handle, UNUSED void *uc
846846
fr_assert_fail("%u tracking entries still allocated at conn close", h->tt->num_requests);
847847
}
848848

849-
DEBUG4("Freeing rlm_radius_udp handle %p", handle);
849+
DEBUG4("Freeing handle %p", handle);
850850

851851
talloc_free(h);
852852
}

0 commit comments

Comments
 (0)