diff --git a/src/ssl_sock.c b/src/ssl_sock.c index 79ac2d66f..e637b0423 100644 --- a/src/ssl_sock.c +++ b/src/ssl_sock.c @@ -1083,8 +1083,7 @@ static int tlskeys_finalize_config(void) } /* swap root */ - LIST_INSERT(&tkr, &tlskeys_reference); - LIST_DELETE(&tkr); + LIST_SPLICE(&tlskeys_reference, &tkr); return ERR_NONE; } #endif /* SSL_CTRL_SET_TLSEXT_TICKET_KEY_CB */