1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

r25020: Fix coverity #374, possible null deref.

Jeremy.
This commit is contained in:
Jeremy Allison 2007-09-08 04:57:17 +00:00 committed by Gerald (Jerry) Carter
parent a58de8cee5
commit 82b3656b4b

View File

@ -146,7 +146,7 @@ static struct winbindd_domain *add_trusted_domain(const char *domain_name, const
/* See if we found a match. Check if we need to update the
SID. */
if ( domain ) {
if ( domain && sid) {
if ( sid_equal( &domain->sid, &global_sid_NULL ) )
sid_copy( &domain->sid, sid );