s4 lib socket: Ensure address string owned by parent struct
authorGary Lockyer <gary@catalyst.net.nz>
Tue, 7 May 2019 04:30:22 +0000 (16:30 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 8 May 2019 20:03:42 +0000 (20:03 +0000)
commitae9fb93393bcadbc71328335e481e4381ecb65bf
treec79942fbca8926db02d4d9b78b7e6b0e70e241c4
parentb93ae77a6f44a9eb43aae8ed8abfc4149d7b8fef
s4 lib socket: Ensure address string owned by parent struct

The local address string was not owned by it's parent structure, which
caused a use after free error in
continue_ip_open_socket source4/librpc/rpc/dcerpc_sock.c:267

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

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Wed May  8 20:03:42 UTC 2019 on sn-devel-184
source4/lib/socket/socket_ip.c