Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
9ff5100e
...
9ff5100ee7a0dc548d7c18256dac872352a3612c
authored
2004-02-08 22:07:38 +0000
by
Wojciech Polak
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(imap4d_starttls): Terminate the session after receiving an illegal TLS
packet.
1 parent
ddba8599
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
imap4d/starttls.c
imap4d/starttls.c
View file @
9ff5100
...
...
@@ -34,6 +34,8 @@ imap4d_starttls (struct imap4d_command *command, char *arg)
if
(
util_getword
(
arg
,
&
sp
))
return
util_finish
(
command
,
RESP_BAD
,
"Too many args"
);
util_atexit
(
mu_deinit_tls_libs
);
status
=
util_finish
(
command
,
RESP_OK
,
"Begin TLS negotiation"
);
util_flush_output
();
tls_done
=
imap4d_init_tls_server
();
...
...
@@ -43,8 +45,14 @@ imap4d_starttls (struct imap4d_command *command, char *arg)
imap4d_capability_remove
(
"STARTTLS"
);
login_disabled
=
0
;
imap4d_capability_remove
(
"LOGINDISABLED"
);
util_atexit
(
mu_deinit_tls_libs
);
}
else
{
syslog
(
LOG_ERR
,
_
(
"Session terminated"
));
util_bye
();
exit
(
0
);
}
return
status
;
}
...
...
Please
register
or
sign in
to post a comment