From: Alan T. DeKok Date: Tue, 23 Jan 2024 00:42:26 +0000 (-0500) Subject: and more build fixes X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97d06d779ecaa449dbd945adc179479235396219;p=thirdparty%2Ffreeradius-server.git and more build fixes --- diff --git a/src/lib/bio/bio_priv.h b/src/lib/bio/bio_priv.h index 42859e247c3..556781f08f3 100644 --- a/src/lib/bio/bio_priv.h +++ b/src/lib/bio/bio_priv.h @@ -50,7 +50,13 @@ struct fr_bio_common_s { */ static inline void CC_HINT(nonnull) fr_bio_chain(fr_bio_t *first, fr_bio_t *second) { - fr_dlist_entry_link_after(&first->entry, &second->entry); + fr_assert(first->entry.prev == NULL); + fr_assert(first->entry.next == NULL); + + fr_assert(second->entry.prev == NULL); + + first->entry.next = &second->entry; + second->entry.prev = &first->entry; } /** Remove a bio from a chain diff --git a/src/lib/bio/fd_open.c b/src/lib/bio/fd_open.c index 517beefdeee..8cffe8415c2 100644 --- a/src/lib/bio/fd_open.c +++ b/src/lib/bio/fd_open.c @@ -461,7 +461,7 @@ static int fr_bio_fd_socket_bind_unix(fr_bio_fd_t *my, fr_bio_fd_config_t const socklen_t sunlen; struct sockaddr_un sun; - p = strrchr(my->info.socket.unix.path, '/'); + p = strrchr(cfg->path, '/'); /* * The UID and GID should be taken automatically from the "user" and "group" settings in