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
5a48abe6
...
5a48abe69bcf247e6b481085bb22b144d1ce2bae
authored
2010-03-19 12:11:55 +0200
by
Simon Josefsson
Committed by
Sergey Poznyakoff
2010-03-19 12:11:55 +0200
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Bugfix.
* imap4d/auth_gsasl.c (auth_gsasl): Fix memory management.
1 parent
735a3622
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
imap4d/auth_gsasl.c
imap4d/auth_gsasl.c
View file @
5a48abe
...
...
@@ -86,7 +86,7 @@ auth_gsasl (struct imap4d_command *command, char *auth_type, char **username)
if
(
rc
!=
GSASL_OK
)
{
mu_diag_output
(
MU_DIAG_NOTICE
,
_
(
"SASL gsasl_server_start: %s"
),
gsasl_strerror
(
rc
));
gsasl_strerror
(
rc
));
return
0
;
}
...
...
@@ -100,11 +100,11 @@ auth_gsasl (struct imap4d_command *command, char *auth_type, char **username)
imap4d_getline
(
&
input_str
,
&
input_size
,
&
input_len
);
}
free
(
input_str
);
if
(
rc
!=
GSASL_OK
)
{
mu_diag_output
(
MU_DIAG_NOTICE
,
_
(
"GSASL error: %s"
),
gsasl_strerror
(
rc
));
free
(
input_str
);
free
(
output
);
return
RESP_NO
;
}
...
...
@@ -118,10 +118,13 @@ auth_gsasl (struct imap4d_command *command, char *auth_type, char **username)
if
(
input_len
!=
0
)
{
mu_diag_output
(
MU_DIAG_NOTICE
,
_
(
"non-empty client response"
));
free
(
input_str
);
free
(
output
);
return
RESP_NO
;
}
}
free
(
input_str
);
free
(
output
);
if
(
*
username
==
NULL
)
...
...
Please
register
or
sign in
to post a comment