]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Restore previous state
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 3 Oct 2017 15:53:48 +0000 (23:53 +0800)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 3 Oct 2017 15:53:48 +0000 (23:53 +0800)
src/main/connection.c

index 025c2e95cc8344323bb089739ad2b9806e65a31c..77f6fcba860c6b8d07900f10e8cbe30c7bb35f1a 100644 (file)
@@ -140,6 +140,7 @@ 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 = prev;
                        break;
 
                case FR_CONNECTION_STATE_HALTED:                /* Do nothing */