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
53be6d7e
...
53be6d7ead79960c6a690b89dcc47033bc5792a6
authored
2004-08-07 09:05:41 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(authenticate_imap_sasl_anon): Use auth_state instead of state. Possibly this was a typo...
1 parent
1ae03496
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
mailbox/imap/folder.c
mailbox/imap/folder.c
View file @
53be6d7
...
...
@@ -282,6 +282,7 @@ authenticate_imap_sasl_anon (authority_t auth)
return
ENOSYS
;
}
/* FIXME: auth_state is never set explicitely before this function */
switch
(
f_imap
->
auth_state
)
{
case
IMAP_AUTH_ANON_REQ_WRITE
:
...
...
@@ -292,13 +293,13 @@ authenticate_imap_sasl_anon (authority_t auth)
f_imap
->
seq
);
f_imap
->
seq
++
;
CHECK_ERROR_CLOSE
(
folder
,
f_imap
,
status
);
f_imap
->
state
=
IMAP_AUTH_ANON_REQ_SEND
;
f_imap
->
auth_
state
=
IMAP_AUTH_ANON_REQ_SEND
;
}
case
IMAP_AUTH_ANON_REQ_SEND
:
status
=
imap_send
(
f_imap
);
CHECK_EAGAIN
(
f_imap
,
status
);
f_imap
->
state
=
IMAP_AUTH_ANON_WAIT_CONT
;
f_imap
->
auth_
state
=
IMAP_AUTH_ANON_WAIT_CONT
;
case
IMAP_AUTH_ANON_WAIT_CONT
:
status
=
imap_parse
(
f_imap
);
...
...
@@ -306,25 +307,25 @@ authenticate_imap_sasl_anon (authority_t auth)
FOLDER_DEBUG0
(
folder
,
MU_DEBUG_PROT
,
f_imap
->
buffer
);
if
(
strncmp
(
"+"
,
f_imap
->
buffer
,
2
)
==
0
)
{
f_imap
->
state
=
IMAP_AUTH_ANON_MSG
;
f_imap
->
auth_
state
=
IMAP_AUTH_ANON_MSG
;
}
else
{
/* Something is wrong! */
}
f_imap
->
state
=
IMAP_AUTH_ANON_MSG
;
f_imap
->
auth_
state
=
IMAP_AUTH_ANON_MSG
;
case
IMAP_AUTH_ANON_MSG
:
FOLDER_DEBUG0
(
folder
,
MU_DEBUG_PROT
,
"
\n
"
);
status
=
imap_writeline
(
f_imap
,
"
\r\n
"
);
CHECK_ERROR_CLOSE
(
folder
,
f_imap
,
status
);
f_imap
->
state
=
IMAP_AUTH_ANON_MSG_SEND
;
f_imap
->
auth_
state
=
IMAP_AUTH_ANON_MSG_SEND
;
case
IMAP_AUTH_ANON_MSG_SEND
:
status
=
imap_send
(
f_imap
);
CHECK_EAGAIN
(
f_imap
,
status
);
f_imap
->
state
=
IMAP_AUTH_ANON_WAIT_RESP
;
f_imap
->
auth_
state
=
IMAP_AUTH_ANON_WAIT_RESP
;
case
IMAP_AUTH_ANON_WAIT_RESP
:
status
=
imap_parse
(
f_imap
);
...
...
Please
register
or
sign in
to post a comment