]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
we can transition init -> connected
authorAlan T. DeKok <aland@freeradius.org>
Wed, 10 Jan 2024 13:05:05 +0000 (08:05 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 10 Jan 2024 22:24:49 +0000 (17:24 -0500)
for connected datagram sockets, connect() generally returns "OK"
immediately.

src/lib/server/connection.c

index 4e449c7297f78837d7a0a00278001462876c1b06..089d7ee1999465493dc21471d194599caea6e672 100644 (file)
@@ -1083,6 +1083,12 @@ static void connection_state_enter_init(fr_connection_t *conn)
                connection_state_enter_connecting(conn);
                return;
 
+       case FR_CONNECTION_STATE_CONNECTED:
+               conn->is_closed = false;        /* We now have a handle */
+               WATCH_POST(conn);               /* Only call if we successfully initialised the handle */
+               connection_state_enter_connected(conn);
+               return;
+
        /*
         *      Initialisation callback failed
         */