]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Follow the normal state transition if we have a ->failed callback and it returns...
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 3 Oct 2017 15:52:18 +0000 (23:52 +0800)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 3 Oct 2017 15:52:18 +0000 (23:52 +0800)
src/main/connection.c

index a019e3ae84910b9e5d53e5fcc0ab42698caa56e9..025c2e95cc8344323bb089739ad2b9806e65a31c 100644 (file)
@@ -140,8 +140,6 @@ static void connection_state_failed(fr_connection_t *conn, struct timeval *now)
                ret = conn->failed(conn->fd, prev, conn->uctx);
                switch (ret) {
                case FR_CONNECTION_STATE_INIT:
-                       conn->state = FR_CONNECTION_STATE_FAILED;       /* so init function prints the correct transition */
-                       connection_state_init(conn, now);
                        break;
 
                case FR_CONNECTION_STATE_HALTED:                /* Do nothing */