diff options
author | Günther Deschner <gd@samba.org> | 2008-11-13 16:45:42 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-11-13 17:33:10 +0100 |
commit | 85dec6917184a024f9b76ea6f6654227e6457af3 (patch) | |
tree | c84ffaac0a16b103d3f18c8ae88bcf415f9cf31a /source3 | |
parent | 540b2df874ff053bccd6ef6165476d5225f2ae16 (diff) | |
download | samba-85dec6917184a024f9b76ea6f6654227e6457af3.tar.gz samba-85dec6917184a024f9b76ea6f6654227e6457af3.tar.xz samba-85dec6917184a024f9b76ea6f6654227e6457af3.zip |
pam_winbind: do not add empty blob.
Guenther
Diffstat (limited to 'source3')
-rw-r--r-- | source3/nsswitch/pam_winbind.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/source3/nsswitch/pam_winbind.c b/source3/nsswitch/pam_winbind.c index 5ba4850a4b2..c164f8e72a1 100644 --- a/source3/nsswitch/pam_winbind.c +++ b/source3/nsswitch/pam_winbind.c @@ -2369,14 +2369,16 @@ static int _pam_delete_cred(pam_handle_t *pamh, int flags, logoff.username = user; - wbc_status = wbcAddNamedBlob(&logoff.num_blobs, - &logoff.blobs, - "ccfilename", - 0, - (uint8_t *)ccname, - strlen(ccname)+1); - if (!WBC_ERROR_IS_OK(wbc_status)) { - goto out; + if (ccname) { + wbc_status = wbcAddNamedBlob(&logoff.num_blobs, + &logoff.blobs, + "ccfilename", + 0, + (uint8_t *)ccname, + strlen(ccname)+1); + if (!WBC_ERROR_IS_OK(wbc_status)) { + goto out; + } } wbc_status = wbcAddNamedBlob(&logoff.num_blobs, |