Skip to content

Commit

Permalink
only complain if the user sets "interface = foo"
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Dec 24, 2024
1 parent 7951b60 commit 361a68b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2,565 deletions.
2 changes: 2 additions & 0 deletions src/lib/bio/fd_open.c
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,8 @@ static int fr_bio_fd_socket_bind_to_device(fr_bio_fd_t *my, UNUSED fr_bio_fd_con
*/
static int fr_bio_fd_socket_bind_to_device(fr_bio_fd_t *my, fr_bio_fd_config_t const *cfg)
{
if (!my->info.socket.inet.ifindex) return 0;

fr_strerror_const("Bind to interface is not supported on this platform");
return -1;
}
Expand Down
6 changes: 3 additions & 3 deletions src/modules/rlm_radius/bio.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

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

DEBUG4("Freeing rlm_radius_udp handle %p", handle);
DEBUG4("Freeing handle %p", handle);

talloc_free(h);
}
Expand Down
Loading

0 comments on commit 361a68b

Please sign in to comment.