]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
set the bio type
authorAlan T. DeKok <aland@freeradius.org>
Tue, 13 Feb 2024 17:58:11 +0000 (12:58 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 14 Feb 2024 02:53:07 +0000 (21:53 -0500)
src/lib/bio/fd_open.c

index f125c3a63efc2cef8ce1a4971b71e352e72a1f04..d021dccdf2f1617fbf8b406ffe8b2699e1789ccd 100644 (file)
@@ -827,6 +827,11 @@ int fr_bio_fd_open(fr_bio_t *bio, fr_bio_fd_config_t const *cfg)
         */
        my->info.socket.fd = fd;
 
+       /*
+        *      Set the type, too.
+        */
+       my->info.type = cfg->type;
+
        /*
         *      Do sanity checks, bootstrap common socket options, bind to the socket, and initialize the read
         *      / write functions.