1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

libnet: Fix Coverity ID 1634803 Dereference after null check

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>

Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Thu Nov 14 18:29:46 UTC 2024 on atb-devel-224
This commit is contained in:
Volker Lendecke 2024-11-14 17:09:31 +01:00
parent 50f3273e82
commit 3987cb0bc3

View File

@ -85,7 +85,7 @@ NTSTATUS libnet_FindSite(TALLOC_CTX *ctx, struct libnet_context *lctx, struct li
map_netlogon_samlogon_response(resp);
if ((nt5ex->client_site != NULL) ||
if ((nt5ex->client_site != NULL) &&
(nt5ex->client_site[0] != '\0'))
{
site_name_str = talloc_strdup(tmp_ctx,