diff options
-rw-r--r-- | usr/src/lib/smbsrv/libsmb/common/smb_domain.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/lib/smbsrv/libsmb/common/smb_domain.c b/usr/src/lib/smbsrv/libsmb/common/smb_domain.c index 5b4a15a08f..e1c5109871 100644 --- a/usr/src/lib/smbsrv/libsmb/common/smb_domain.c +++ b/usr/src/lib/smbsrv/libsmb/common/smb_domain.c @@ -144,7 +144,7 @@ smb_domain_add(smb_domain_type_t type, smb_domain_t *di) { uint32_t res; - if ((di == NULL) || (di->di_sid == NULL)) + if (di == NULL || di->di_sid[0] == '\0') return (SMB_DOMAIN_INVALID_ARG); if ((res = smb_dcache_lock(SMB_DCACHE_WRLOCK)) == SMB_DOMAIN_SUCCESS) { |