Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 452652
Collapse All | Expand All

(-)file_not_specified_in_diff (-2 / +2 lines)
Line  Link Here
0
-- src/backend_pgsql.c
0
++ src/backend_pgsql.c
Lines 258-264 Link Here
258
	if(pg_execParam(conn, &res, options->query_auth, service, user, passwd, rhost) == PAM_SUCCESS) {
258
	if(pg_execParam(conn, &res, options->query_auth, service, user, passwd, rhost) == PAM_SUCCESS) {
259
		if(PQntuples(res) == 0) {
259
		if(PQntuples(res) == 0) {
260
			rc = PAM_USER_UNKNOWN;
260
			rc = PAM_USER_UNKNOWN;
261
		} else {
261
		} else if(!PQgetisnull(res, 0, 0)) {
262
			char *stored_pw = PQgetvalue(res, 0, 0);
262
			char *stored_pw = PQgetvalue(res, 0, 0);
263
			if (!strcmp(stored_pw, (tmp = password_encrypt(options, user, passwd, stored_pw)))) rc = PAM_SUCCESS;
263
			if (!strcmp(stored_pw, (tmp = password_encrypt(options, user, passwd, stored_pw)))) rc = PAM_SUCCESS;
264
			free (tmp);
264
			free (tmp);

Return to bug 452652