mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
pam_winbind: do not add empty blob.
Guenther
This commit is contained in:
parent
540b2df874
commit
85dec69171
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user