(pop3d_mainloop): Terminate the session after receiving an illegal TLS
packet.
Showing
1 changed file
with
8 additions
and
1 deletions
... | @@ -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; | ... | ... |
-
Please register or sign in to post a comment