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
6af80afe
Commit
6af80afe
authored
9 years ago
by
Steve Holme
Browse files
Options
Downloads
Patches
Plain Diff
pop3: Added clarity on some server response codes
parent
80562083
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/pop3.c
+4
-2
4 additions, 2 deletions
lib/pop3.c
with
4 additions
and
2 deletions
lib/pop3.c
+
4
−
2
View file @
6af80afe
...
...
@@ -256,14 +256,16 @@ static bool pop3_endofresp(struct connectdata *conn, char *line, size_t len,
if
(
pop3c
->
state
==
POP3_CAPA
)
{
/* Do we have the terminating line? */
if
(
len
>=
1
&&
!
memcmp
(
line
,
"."
,
1
))
/* Treat the response as a success */
*
resp
=
'+'
;
else
/* Treat the response as an untagged continuation */
*
resp
=
'*'
;
return
TRUE
;
}
/* Do we have a
command
or continuation response? */
/* Do we have a
success
or continuation response? */
if
((
len
>=
3
&&
!
memcmp
(
"+OK"
,
line
,
3
))
||
(
len
>=
1
&&
!
memcmp
(
"+"
,
line
,
1
)))
{
*
resp
=
'+'
;
...
...
@@ -700,7 +702,7 @@ static CURLcode pop3_state_capa_resp(struct connectdata *conn, int pop3code,
(
void
)
instate
;
/* no use for this yet */
/* Do we have a untagged response? */
/* Do we have a untagged
continuation
response? */
if
(
pop3code
==
'*'
)
{
/* Does the server support the STLS capability? */
if
(
len
>=
4
&&
!
memcmp
(
line
,
"STLS"
,
4
))
...
...
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