mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
r14176: Fix coverity bug #30. Ensure no possible null deref.
Jeremy.
(This used to be commit e5d6069cf8
)
This commit is contained in:
parent
5f224c2c26
commit
ab43bf3e10
@ -375,9 +375,14 @@ static struct cli_state
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
/* We pretty much guarentee password must be valid or a pointer
|
||||
to a 0 char. */
|
||||
if (!password) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if ( (username) && (*username) &&
|
||||
((!password) || ((password) && (strlen(password) == 0 ))) &&
|
||||
(strlen(password) == 0 ) &&
|
||||
(cli->use_kerberos) )
|
||||
{
|
||||
/* Use kerberos authentication */
|
||||
|
Loading…
Reference in New Issue
Block a user