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
3cf67a78
...
3cf67a789fc4118deba3c097cec5c69d6a2809e1
authored
2003-03-11 14:10:40 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(mu_sql_authenticate): Bugfix.
1 parent
42d1024f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
auth/sql.c
auth/sql.c
View file @
3cf67a7
...
...
@@ -325,6 +325,7 @@ mu_sql_authenticate (void *ignored_return_data, void *key,
void
*
ignored_func_data
,
void
*
call_data
)
{
struct
mu_auth_data
*
auth_data
=
key
;
char
*
pass
=
call_data
;
char
*
query_str
=
NULL
;
MYSQL
*
m
;
MYSQL_RES
*
res
;
...
...
@@ -379,7 +380,7 @@ mu_sql_authenticate (void *ignored_return_data, void *key,
return
1
;
}
rc
=
strcmp
(
row
[
0
],
crypt
(
auth_data
->
passwd
,
row
[
0
]));
rc
=
strcmp
(
row
[
0
],
crypt
(
pass
,
row
[
0
]));
mysql_free_result
(
res
);
mysql_close
(
m
);
return
rc
;
...
...
Please
register
or
sign in
to post a comment