Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
ce615101
Commit
ce615101
authored
11 years ago
by
Steve Holme
Browse files
Options
Downloads
Patches
Plain Diff
email: Fixed QUIT / LOGOUT being sent when SSL connect fails
parent
86c64f3d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
lib/imap.c
+1
-1
1 addition, 1 deletion
lib/imap.c
lib/pop3.c
+2
-3
2 additions, 3 deletions
lib/pop3.c
lib/smtp.c
+2
-3
2 additions, 3 deletions
lib/smtp.c
with
5 additions
and
7 deletions
lib/imap.c
+
1
−
1
View file @
ce615101
...
...
@@ -1982,7 +1982,7 @@ static CURLcode imap_disconnect(struct connectdata *conn, bool dead_connection)
/* The IMAP session may or may not have been allocated/setup at this
point! */
if
(
!
dead_connection
&&
imapc
->
pp
.
conn
)
if
(
!
dead_connection
&&
imapc
->
pp
.
conn
&&
imapc
->
pp
.
conn
->
bits
.
protoconnstart
)
if
(
!
imap_perform_logout
(
conn
))
(
void
)
imap_block_statemach
(
conn
);
/* ignore errors on LOGOUT */
...
...
This diff is collapsed.
Click to expand it.
lib/pop3.c
+
2
−
3
View file @
ce615101
...
...
@@ -1634,8 +1634,7 @@ static CURLcode pop3_do(struct connectdata *conn, bool *done)
* Disconnect from an POP3 server. Cleanup protocol-specific per-connection
* resources. BLOCKING.
*/
static
CURLcode
pop3_disconnect
(
struct
connectdata
*
conn
,
bool
dead_connection
)
static
CURLcode
pop3_disconnect
(
struct
connectdata
*
conn
,
bool
dead_connection
)
{
struct
pop3_conn
*
pop3c
=
&
conn
->
proto
.
pop3c
;
...
...
@@ -1645,7 +1644,7 @@ static CURLcode pop3_disconnect(struct connectdata *conn,
/* The POP3 session may or may not have been allocated/setup at this
point! */
if
(
!
dead_connection
&&
pop3c
->
pp
.
conn
)
if
(
!
dead_connection
&&
pop3c
->
pp
.
conn
&&
pop3c
->
pp
.
conn
->
bits
.
protoconnstart
)
if
(
!
pop3_perform_quit
(
conn
))
(
void
)
pop3_block_statemach
(
conn
);
/* ignore errors on QUIT */
...
...
This diff is collapsed.
Click to expand it.
lib/smtp.c
+
2
−
3
View file @
ce615101
...
...
@@ -1632,8 +1632,7 @@ static CURLcode smtp_do(struct connectdata *conn, bool *done)
* Disconnect from an SMTP server. Cleanup protocol-specific per-connection
* resources. BLOCKING.
*/
static
CURLcode
smtp_disconnect
(
struct
connectdata
*
conn
,
bool
dead_connection
)
static
CURLcode
smtp_disconnect
(
struct
connectdata
*
conn
,
bool
dead_connection
)
{
struct
smtp_conn
*
smtpc
=
&
conn
->
proto
.
smtpc
;
...
...
@@ -1643,7 +1642,7 @@ static CURLcode smtp_disconnect(struct connectdata *conn,
/* The SMTP session may or may not have been allocated/setup at this
point! */
if
(
!
dead_connection
&&
smtpc
->
pp
.
conn
)
if
(
!
dead_connection
&&
smtpc
->
pp
.
conn
&&
smtpc
->
pp
.
conn
->
bits
.
protoconnstart
)
if
(
!
smtp_perform_quit
(
conn
))
(
void
)
smtp_block_statemach
(
conn
);
/* ignore errors on QUIT */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment