Commit ddba8599 ddba8599550cfe386db07dad8220f876059a463f by Wojciech Polak

(pop3d_mainloop): Terminate the session after receiving an illegal TLS

packet.
1 parent 8c01abf8
......@@ -404,7 +404,14 @@ pop3d_mainloop (int fd, FILE *infile, FILE *outfile)
status = pop3d_capa (arg);
#ifdef WITH_TLS
else if ((strncasecmp (cmd, "STLS", 4) == 0) && tls_available)
status = pop3d_stls (arg);
{
status = pop3d_stls (arg);
if (status)
{
syslog (LOG_ERR, _("Session terminated"));
break;
}
}
#endif /* WITH_TLS */
else
status = ERR_BAD_CMD;
......