Initially found on fedora: https://bugzilla.redhat.com/show_bug.cgi?id=2020376 A newly added popt free invalidates the parsed hostname string.
This bug was referenced in samba master: e9495d2ed28a26899dc3dd77bdfe56e284980218
Created attachment 16961 [details] patch from master for v4-15-test
Comment on attachment 16961 [details] patch from master for v4-15-test LGTM
Jule, please add the patch to 4.15.x. Thanks!
Pushed to autobuild-v4-15-test.
This bug was referenced in samba v4-15-test: 962b7b0f92d37867296b8e30c5ae659e9544a16f
Closing out bug report. Thanks!
This bug was referenced in samba v4-15-stable (Release samba-4.15.3): 962b7b0f92d37867296b8e30c5ae659e9544a16f