]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Make sure we initialize conn to NULL, because a routine we call may give an error...
authorRichard Sharpe <rsharpe@nutanix.com>
Thu, 23 Apr 2015 19:36:28 +0000 (12:36 -0700)
committerKarolin Seeger <kseeger@samba.org>
Tue, 28 Apr 2015 00:21:24 +0000 (02:21 +0200)
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

index 9bbefdb8b1c002ed5eea915e43ec5853be331f0b..7a04459c2ced93143217a22ee7bcb49ca046f3ad 100644 (file)
@@ -210,7 +210,7 @@ int get_my_ip_address( struct sockaddr_storage **pp_ss )
 
 DNS_ERROR do_gethostbyname(const char *server, const char *host)
 {
-       struct dns_connection *conn;
+       struct dns_connection *conn = NULL;
        struct dns_request *req, *resp;
        DNS_ERROR err;