From: Arran Cudbard-Bell Date: Fri, 7 Jul 2017 18:09:11 +0000 (-0400) Subject: Another minor hack X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a74ff443bc182f5a8ccac0d3a90f16624b6430b;p=thirdparty%2Ffreeradius-server.git Another minor hack --- diff --git a/src/main/connection.c b/src/main/connection.c index 0e24cd500e5..85c04a819e9 100644 --- a/src/main/connection.c +++ b/src/main/connection.c @@ -140,11 +140,12 @@ 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 */ - DEBUG4("Changed state %s -> %s", \ + case FR_CONNECTION_STATE_HALTED: /* Do nothing */ + DEBUG4("Changed state %s -> %s", fr_int2str(fr_connection_states, prev, ""), fr_int2str(fr_connection_states, FR_CONNECTION_STATE_HALTED, "")); return;