s3:libads: improve the logic in get_kdc_ip_string()
authorStefan Metzmacher <metze@samba.org>
Thu, 9 Feb 2017 06:09:38 +0000 (07:09 +0100)
committerStefan Metzmacher <metze@samba.org>
Mon, 18 Feb 2019 12:38:24 +0000 (13:38 +0100)
commit6d1ab8f4f99b711f748c0baea3fd34bdf913505d
treea46d3b6f889800ea47c6fc103a4c5b4295ca37fb
parentf9201be69b7eef88db812eb809964f7270caf1b4
s3:libads: improve the logic in get_kdc_ip_string()

This fixes possible memory leaks on 'mem_ctx' and
always adds :88 (also for ipv4 addresses).

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12515

Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/libads/kerberos.c