summaryrefslogtreecommitdiffabout
path: root/pam_sql/pam_mysql.c
Unidiff
Diffstat (limited to 'pam_sql/pam_mysql.c') (more/less context) (show whitespace changes)
-rw-r--r--pam_sql/pam_mysql.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/pam_sql/pam_mysql.c b/pam_sql/pam_mysql.c
index ca1f9e6..3f4a0d6 100644
--- a/pam_sql/pam_mysql.c
+++ b/pam_sql/pam_mysql.c
@@ -365,12 +365,16 @@ gpam_sql_verify_user_pass(pam_handle_t *pamh, const char *password,
365 /* FIXME: This comment is needed to pacify 365 /* FIXME: This comment is needed to pacify
366 `make check-sql-config' in doc: 366 `make check-sql-config' in doc:
367 gpam_sql_find_config("setenv-query") */ 367 gpam_sql_find_config("setenv-query") */
368 if (rc == PAM_SUCCESS 368 if (rc == PAM_SUCCESS) {
369 && (q = gpam_sql_get_query(pamh, "setenv-query", 369 rc = gpam_sql_get_query(pamh, "setenv-query", 0,
370 &slist, 0))) { 370 &slist, &q);
371 if (rc == PAM_SUCCESS) {
372 if (q) {
371 mysql_setenv(pamh, &mysql, q); 373 mysql_setenv(pamh, &mysql, q);
372 gray_slist_free(&slist); 374 gray_slist_free(&slist);
373 } 375 }
376 }
377 }
374 mysql_close(&mysql); 378 mysql_close(&mysql);
375 } 379 }
376 380

Return to:

Send suggestions and report system problems to the System administrator.