1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-10 12:58:35 +03:00

s4:dsdb: Initialize pointers to NULL

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joseph Sutton 2023-09-25 14:40:50 +13:00 committed by Andrew Bartlett
parent 800f3203b1
commit 2944bc1e02

View File

@ -460,9 +460,9 @@ static int acl_validate_spn_value(TALLOC_CTX *mem_ctx,
krb5_context krb_ctx;
krb5_error_code kerr;
krb5_principal principal;
char *instanceName;
char *serviceType;
char *serviceName;
char *instanceName = NULL;
char *serviceType = NULL;
char *serviceName = NULL;
const char *spn_value_str = NULL;
size_t account_name_len;
const char *forest_name = samdb_forest_name(ldb, mem_ctx);
@ -516,8 +516,6 @@ static int acl_validate_spn_value(TALLOC_CTX *mem_ctx,
if (krb5_princ_size(krb_ctx, principal) == 3) {
serviceName = smb_krb5_principal_get_comp_string(mem_ctx, krb_ctx,
principal, 2);
} else {
serviceName = NULL;
}
if (serviceName) {
@ -576,7 +574,7 @@ static int acl_validate_spn_value(TALLOC_CTX *mem_ctx,
goto success;
}
if (is_dc) {
const char *guid_str;
const char *guid_str = NULL;
guid_str = talloc_asprintf(mem_ctx,"%s._msdcs.%s",
ntds_guid,
forest_name);