Commit 1d662e26 1d662e265f9fa861d45a762e3c6442b943cbd4bb by Sergey Poznyakoff

(pop3d_stls): Set state to AUTHORIZATION upon successful completion of TLS negotiation.

1 parent 6c565ba7
......@@ -27,7 +27,7 @@ pop3d_stls (const char *arg)
if (strlen (arg) != 0)
return ERR_BAD_ARGS;
if (state != AUTHORIZATION)
if (state != initial_state)
return ERR_WRONG_STATE;
if (tls_done)
......@@ -41,6 +41,9 @@ pop3d_stls (const char *arg)
if (!tls_done)
return ERR_UNKNOWN;
state = AUTHORIZATION; /* Confirm we're in this state. Necessary for
--tls-required to work */
return OK;
}
......