1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

s3: auth.krb5ccname and auth.unix_username are both fstrings

There's no point in checking for != NULL
This commit is contained in:
Volker Lendecke 2010-09-10 12:49:32 +02:00
parent f101349c73
commit 8de2c15df3

View File

@ -313,8 +313,7 @@ static wbcErr wbc_create_logon_info(struct winbindd_response *resp,
wbc_status = wbc_create_auth_info(resp, &i->info);
BAIL_ON_WBC_ERROR(wbc_status);
if (resp->data.auth.krb5ccname &&
strlen(resp->data.auth.krb5ccname)) {
if (resp->data.auth.krb5ccname[0] != '\0') {
wbc_status = wbcAddNamedBlob(&i->num_blobs,
&i->blobs,
"krb5ccname",
@ -324,8 +323,7 @@ static wbcErr wbc_create_logon_info(struct winbindd_response *resp,
BAIL_ON_WBC_ERROR(wbc_status);
}
if (resp->data.auth.unix_username &&
strlen(resp->data.auth.unix_username)) {
if (resp->data.auth.unix_username[0] != '\0') {
wbc_status = wbcAddNamedBlob(&i->num_blobs,
&i->blobs,
"unix_username",