From: Arran Cudbard-Bell Date: Tue, 3 Oct 2017 15:52:18 +0000 (+0800) Subject: Follow the normal state transition if we have a ->failed callback and it returns... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c192e566c2cae774701169e09878d1e8e4bfa705;p=thirdparty%2Ffreeradius-server.git Follow the normal state transition if we have a ->failed callback and it returns FR_CONNECTION_STATE_INIT --- diff --git a/src/main/connection.c b/src/main/connection.c index a019e3ae849..025c2e95cc8 100644 --- a/src/main/connection.c +++ b/src/main/connection.c @@ -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 */