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
f23e20ff
...
f23e20ffd01ec882ab2d9f102e2dfc657de76bbd
authored
2003-08-29 19:12:06 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(_pop_user): Send QUIT before dropping the connection. Provide a better diagnostics.
1 parent
2cbbfcf0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
mailbox/pop/mbox.c
mailbox/pop/mbox.c
View file @
f23e20f
...
...
@@ -474,7 +474,10 @@ _pop_user (authority_t auth)
status
=
pop_get_user
(
auth
);
if
(
status
!=
0
||
mpd
->
user
==
NULL
||
mpd
->
user
[
0
]
==
'\0'
)
{
CHECK_ERROR_CLOSE
(
mbox
,
mpd
,
EINVAL
);
pop_writeline
(
mpd
,
"QUIT
\r\n
"
);
MAILBOX_DEBUG0
(
mbox
,
MU_DEBUG_PROT
,
mpd
->
buffer
);
pop_write
(
mpd
);
CHECK_ERROR_CLOSE
(
mbox
,
mpd
,
MU_ERR_NOUSERNAME
);
}
status
=
pop_writeline
(
mpd
,
"USER %s
\r\n
"
,
mpd
->
user
);
CHECK_ERROR_CLOSE
(
mbox
,
mpd
,
status
);
...
...
@@ -505,7 +508,10 @@ _pop_user (authority_t auth)
status
=
pop_get_passwd
(
auth
);
if
(
status
!=
0
||
mpd
->
passwd
==
NULL
||
mpd
->
passwd
[
0
]
==
'\0'
)
{
CHECK_ERROR_CLOSE
(
mbox
,
mpd
,
EINVAL
);
pop_writeline
(
mpd
,
"QUIT
\r\n
"
);
MAILBOX_DEBUG0
(
mbox
,
MU_DEBUG_PROT
,
mpd
->
buffer
);
pop_write
(
mpd
);
CHECK_ERROR_CLOSE
(
mbox
,
mpd
,
MU_ERR_NOPASSWORD
);
}
status
=
pop_writeline
(
mpd
,
"PASS %s
\r\n
"
,
mpd
->
passwd
);
MAILBOX_DEBUG0
(
mbox
,
MU_DEBUG_PROT
,
mpd
->
buffer
);
...
...
Please
register
or
sign in
to post a comment