summaryrefslogtreecommitdiff
path: root/source3/nsswitch
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-11-13 16:45:42 +0100
committerGünther Deschner <gd@samba.org>2008-11-13 17:33:10 +0100
commit85dec6917184a024f9b76ea6f6654227e6457af3 (patch)
treec84ffaac0a16b103d3f18c8ae88bcf415f9cf31a /source3/nsswitch
parent540b2df874ff053bccd6ef6165476d5225f2ae16 (diff)
downloadsamba-85dec6917184a024f9b76ea6f6654227e6457af3.tar.gz
samba-85dec6917184a024f9b76ea6f6654227e6457af3.tar.bz2
samba-85dec6917184a024f9b76ea6f6654227e6457af3.zip
pam_winbind: do not add empty blob.
Guenther
Diffstat (limited to 'source3/nsswitch')
-rw-r--r--source3/nsswitch/pam_winbind.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/source3/nsswitch/pam_winbind.c b/source3/nsswitch/pam_winbind.c
index 5ba4850a4b..c164f8e72a 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,