]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Another minor hack
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 7 Jul 2017 18:09:11 +0000 (14:09 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 7 Jul 2017 18:09:11 +0000 (14:09 -0400)
src/main/connection.c

index 0e24cd500e5cf0a5bf55a2194f9a26c84d3a5b08..85c04a819e972d4ce447b143db0456f5f75a5b77 100644 (file)
@@ -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, "<INVALID>"),
                               fr_int2str(fr_connection_states, FR_CONNECTION_STATE_HALTED, "<INVALID>"));
                        return;