summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2006-07-11 10:39:32 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:19:13 -0500
commit6139f49d60a9f2554505bf5cf2781168478ded9d (patch)
tree450abdf91481d14111cc914fb69db447381b7fff
parent510b81b428ef8febcb85a0330a10cba01ad34e79 (diff)
downloadsamba-6139f49d60a9f2554505bf5cf2781168478ded9d.tar.gz
samba-6139f49d60a9f2554505bf5cf2781168478ded9d.tar.bz2
samba-6139f49d60a9f2554505bf5cf2781168478ded9d.zip
r16941: Fix crash bug when the pam conversation receives an empty token.
Thanks to Bjoern Jacke for the report and test-case. Guenther (This used to be commit f2ebc0e3de396f44f49dabbfe42cb3ad1c1a7ec1)
-rw-r--r--source3/nsswitch/pam_winbind.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/nsswitch/pam_winbind.c b/source3/nsswitch/pam_winbind.c
index 8110a02a68..78776256e9 100644
--- a/source3/nsswitch/pam_winbind.c
+++ b/source3/nsswitch/pam_winbind.c
@@ -748,8 +748,8 @@ static int _winbind_read_password(pam_handle_t * pamh,
}
}
} else {
- _pam_log(LOG_NOTICE
- ,"could not recover authentication token");
+ _pam_log(LOG_NOTICE, "could not recover authentication token");
+ retval = PAM_AUTHTOK_RECOVER_ERR;
}
}