Make sure we initialize conn to NULL, because a routine we call may give an error...
commit2e0df254611d2e310cdb563e70c21ddb7560a038
authorRichard Sharpe <rsharpe@nutanix.com>
Thu, 23 Apr 2015 19:36:28 +0000 (23 12:36 -0700)
committerKarolin Seeger <kseeger@samba.org>
Tue, 28 Apr 2015 00:21:24 +0000 (28 02:21 +0200)
treecea70af9ee19e8d6b91a4988b0cbba54cb92b604
parent08dd42c3886daef81f37dcda64d9517bad65551a
Make sure we initialize conn to NULL, because a routine we call may give an error and not touch conn, and then we get an error when trying to TALLOC_FREE it.

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

Signed-off-by: Richard Sharpe <rsharpe@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 471744a32d37f187c87f9bfa6f860b69446b9afe)
source3/utils/net_dns.c