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) ...@@ -404,7 +404,14 @@ pop3d_mainloop (int fd, FILE *infile, FILE *outfile)
404 status = pop3d_capa (arg); 404 status = pop3d_capa (arg);
405 #ifdef WITH_TLS 405 #ifdef WITH_TLS
406 else if ((strncasecmp (cmd, "STLS", 4) == 0) && tls_available) 406 else if ((strncasecmp (cmd, "STLS", 4) == 0) && tls_available)
407 status = pop3d_stls (arg); 407 {
408 status = pop3d_stls (arg);
409 if (status)
410 {
411 syslog (LOG_ERR, _("Session terminated"));
412 break;
413 }
414 }
408 #endif /* WITH_TLS */ 415 #endif /* WITH_TLS */
409 else 416 else
410 status = ERR_BAD_CMD; 417 status = ERR_BAD_CMD;
......