]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
and more build fixes
authorAlan T. DeKok <aland@freeradius.org>
Tue, 23 Jan 2024 00:42:26 +0000 (19:42 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 23 Jan 2024 00:46:28 +0000 (19:46 -0500)
src/lib/bio/bio_priv.h
src/lib/bio/fd_open.c

index 42859e247c34eede129f19a116572cc53f4fafc4..556781f08f396d33b2873f144a61af0e242bb7b5 100644 (file)
@@ -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
index 517beefdeeef63ccd64d6fc52e5bd3b276b7c95d..8cffe8415c2e6a0ad05357c5816ec6e41ecf38f1 100644 (file)
@@ -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