From dc5138bc559beddc160c9d74e1bee6e6cc3692b7 Mon Sep 17 00:00:00 2001 From: Erik Ekman Date: Sat, 1 Dec 2007 20:53:29 +0000 Subject: [PATCH] packet name collided with global packet --- src/iodine.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/iodine.c b/src/iodine.c index b82ad31..250913e 100644 --- a/src/iodine.c +++ b/src/iodine.c @@ -36,6 +36,7 @@ #endif #include "common.h" +#include "packet.h" #include "encoding.h" #include "base32.h" #include "dns.h" @@ -85,16 +86,16 @@ sighandler(int sig) static void send_query(int fd, char *hostname) { - char packet[4096]; + char pkt[4096]; struct query q; size_t len; q.id = ++chunkid; q.type = T_NULL; - len = dns_encode(packet, sizeof(packet), &q, QR_QUERY, hostname, strlen(hostname)); + len = dns_encode(pkt, sizeof(pkt), &q, QR_QUERY, hostname, strlen(hostname)); - sendto(fd, packet, len, 0, (struct sockaddr*)&nameserv, sizeof(nameserv)); + sendto(fd, pkt, len, 0, (struct sockaddr*)&nameserv, sizeof(nameserv)); } static void