mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
s3: libads: Fix coverity false positive.
dn is always returned as NULL on error in ads_build_path(), but coverity can't see that. Easy change to quieten it. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Noel Power <npower@samba.org> Autobuild-User(master): Noel Power <npower@samba.org> Autobuild-Date(master): Mon Jul 4 16:42:28 UTC 2022 on sn-devel-184
This commit is contained in:
parent
17f8ec6f57
commit
96a649efd8
@ -106,6 +106,7 @@ ADS_STATUS ads_build_dn(const char *realm, TALLOC_CTX *mem_ctx, char **_dn)
|
||||
|
||||
status = ads_build_path(realm, ".", "dc=", 0, &dn);
|
||||
if (!ADS_ERR_OK(status)) {
|
||||
SAFE_FREE(dn);
|
||||
return status;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user