1
0
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:
Jeremy Allison 2022-07-01 08:49:42 -07:00 committed by Noel Power
parent 17f8ec6f57
commit 96a649efd8

View File

@ -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;
}