]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Call the right callback for init
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 4 Jul 2017 18:59:06 +0000 (14:59 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 4 Jul 2017 18:59:06 +0000 (14:59 -0400)
src/main/connection.c

index 75ce02dcf818341655574931b76e284662740942..a2b199688f4c10f885da4ce56df9eb2669906784 100644 (file)
@@ -226,7 +226,7 @@ static void connection_state_init(fr_connection_t *conn, struct timeval *now)
        DEBUG2("Connection initialising");
        STATE_TRANSITION(FR_CONNECTION_STATE_INIT);
 
-       ret = conn->open(fd, conn->el, conn->uctx);
+       ret = conn->init(&fd, conn->uctx);
        switch (ret) {
        case FR_CONNECTION_STATE_CONNECTING:
        {
@@ -246,6 +246,7 @@ static void connection_state_init(fr_connection_t *conn, struct timeval *now)
                        return;
                }
                fr_event_timer_insert(conn->el, _connection_timeout, conn, &when, &conn->connection_timer);
+               conn->fd = fd;
        }
                break;