Commit 3cf67a78 3cf67a789fc4118deba3c097cec5c69d6a2809e1 by Sergey Poznyakoff

(mu_sql_authenticate): Bugfix.

1 parent 42d1024f
......@@ -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;
......