]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
a4 and a6 were being referenced out of scope
authorMark Andrews <marka@isc.org>
Mon, 17 Feb 2014 14:53:21 +0000 (01:53 +1100)
committerMark Andrews <marka@isc.org>
Mon, 17 Feb 2014 14:53:21 +0000 (01:53 +1100)
bin/delve/delve.c

index 2e4a8b5769fdec0ee204304e4951f01575d60906..edd7ac41bcabb0011ceb6c390e0fe44b0ab28f40 100644 (file)
@@ -91,6 +91,7 @@ static isc_log_t *lctx = NULL;
 static char *server = NULL;
 static const char *port = "53";
 static isc_sockaddr_t *srcaddr4 = NULL, *srcaddr6 = NULL;
+static isc_sockaddr_t a4, a6;
 static char *curqname = NULL, *qname = NULL;
 static isc_boolean_t classset = ISC_FALSE;
 static dns_rdatatype_t qtype = dns_rdatatype_none;
@@ -1127,7 +1128,6 @@ dash_option(char *option, char *next, isc_boolean_t *open_type_class) {
        char textname[MAXNAME];
        struct in_addr in4;
        struct in6_addr in6;
-       isc_sockaddr_t a4, a6;
        in_port_t srcport;
        isc_uint32_t num;
        char *hash;