aresdns: use zero socktype/protocol/port, not -1
authorPavel Šimerda <psimerda@redhat.com>
Mon, 13 Oct 2014 20:43:10 +0000 (22:43 +0200)
committerPavel Šimerda <psimerda@redhat.com>
Tue, 14 Oct 2014 07:53:08 +0000 (09:53 +0200)
backends/aresdns.c

index b89f74b19d3896bc24475d360bb9a2fa7443e0f5..1531ddb6223c1bb238554d806f0cf5c39285aff9 100644 (file)
@@ -86,9 +86,9 @@ host_callback(void *arg, int status, int timeouts, struct hostent *he)
        netresolve_query_t query = lookup_data->query;
        struct ares_srv_reply *srv = lookup_data->srv;
        struct priv_dns *priv = netresolve_backend_get_priv(query);
-       int socktype = -1;
-       int protocol = -1;
-       int port = -1;
+       int socktype = 0;
+       int protocol = 0;
+       int port = 0;
        int priority = 0;
        int weight = 0;
        int ttl = 0;
This page took 0.061041 seconds and 5 git commands to generate.