diff --git a/usr.sbin/ctld/login.c b/usr.sbin/ctld/login.c index 3710dbc4fd6c..f767d8826740 100644 --- a/usr.sbin/ctld/login.c +++ b/usr.sbin/ctld/login.c @@ -767,10 +767,10 @@ login_wait_transition(struct connection *conn) login_send_error(request, 0x02, 0x00); log_errx(1, "got no \"T\" flag after answering AuthMethod"); } - pdu_delete(request); log_debugx("got state transition request"); response = login_new_response(request); + pdu_delete(request); login_set_nsg(response, BHSLR_STAGE_OPERATIONAL_NEGOTIATION); pdu_send(response); pdu_delete(response);