summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2022-11-29 20:04:28 +0200
committerToomas Soome <tsoome@me.com>2022-12-16 19:56:38 +0200
commitfb2301db8e408458b542c1f5fa07b5b8a3a95395 (patch)
tree6f438899aaae94b47a3dbacfa56eccacf7871836
parentabd30308264aa9ca2b1c71565b841fc94256d07b (diff)
downloadillumos-joyent-fb2301db8e408458b542c1f5fa07b5b8a3a95395.tar.gz
15258 libsmb: tautological-pointer-compare
Reviewed by: Dan Cross <cross@oxidecomputer.com> Reviewed by: Gordon Ross <gordon.w.ross@gmail.com> Approved by: Dan McDonald <danmcd@mnx.io>
-rw-r--r--usr/src/lib/smbsrv/libsmb/common/smb_domain.c2
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) {