nsswitch: fix crash on null pam change pw response
authorLuca Lorenzetto <lorenzetto-luca@ubuntu-it.org>
Tue, 11 Sep 2012 16:35:42 +0000 (18:35 +0200)
committerDavid Disseldorp <ddiss@samba.org>
Tue, 11 Sep 2012 22:07:28 +0000 (00:07 +0200)
commit4e595f4bf08489cb69e871093804b9069d63d9f5
tree0dfdba2243845a8fe0aa7cabe5b972546f3d106b
parentdf5f962c60bb273c4759334ed6cc490d2a91d5ba
nsswitch: fix crash on null pam change pw response

The function _pam_winbind_change_pwd crashes due to a null value passed
to the function strcasecmp and denies to login via graphical login
manager. Check for a null value before doing a strcasecmp.

Bug-Ubuntu: https://bugs.launchpad.net/bugs/1003296
Bug: https://bugzilla.samba.org/show_bug.cgi?id=9013

Autobuild-User(master): David Disseldorp <ddiss@samba.org>
Autobuild-Date(master): Wed Sep 12 00:07:28 CEST 2012 on sn-devel-104
nsswitch/pam_winbind.c