mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
s3:libads: Check print_canonical_sockaddr_with_port() for NULL in get_kdc_ip_string()
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15016
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
(cherry picked from commit 12c843ad0a
)
This commit is contained in:
parent
3c5d0c379d
commit
abe01ca6b2
@ -435,13 +435,18 @@ static char *get_kdc_ip_string(char *mem_ctx,
|
||||
NTSTATUS status;
|
||||
bool ok;
|
||||
char *kdc_str = NULL;
|
||||
char *canon_sockaddr = NULL;
|
||||
|
||||
SMB_ASSERT(pss != NULL);
|
||||
|
||||
canon_sockaddr = print_canonical_sockaddr_with_port(frame, pss);
|
||||
if (canon_sockaddr == NULL) {
|
||||
goto out;
|
||||
}
|
||||
|
||||
kdc_str = talloc_asprintf(frame,
|
||||
"\t\tkdc = %s\n",
|
||||
print_canonical_sockaddr_with_port(mem_ctx,
|
||||
pss));
|
||||
canon_sockaddr);
|
||||
if (kdc_str == NULL) {
|
||||
goto out;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user