summaryrefslogtreecommitdiff
path: root/pop3d/pop3d.c
diff options
context:
space:
mode:
authorWojciech Polak <polak@gnu.org>2004-02-08 22:06:36 +0000
committerWojciech Polak <polak@gnu.org>2004-02-08 22:06:36 +0000
commitddba8599550cfe386db07dad8220f876059a463f (patch)
treee083264ebf5707e811f0291a25201c6f190fcd1d /pop3d/pop3d.c
parent8c01abf80071fbfc898dc4b83628b555abbbad20 (diff)
downloadmailutils-ddba8599550cfe386db07dad8220f876059a463f.tar.gz
mailutils-ddba8599550cfe386db07dad8220f876059a463f.tar.bz2
(pop3d_mainloop): Terminate the session after receiving an illegal TLS
packet.
Diffstat (limited to 'pop3d/pop3d.c')
-rw-r--r--pop3d/pop3d.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/pop3d/pop3d.c b/pop3d/pop3d.c
index 80fe7574d..e58698b17 100644
--- a/pop3d/pop3d.c
+++ b/pop3d/pop3d.c
@@ -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;

Return to:

Send suggestions and report system problems to the System administrator.