summaryrefslogtreecommitdiffstats
path: root/avahi-core/server.c
diff options
context:
space:
mode:
Diffstat (limited to 'avahi-core/server.c')
-rw-r--r--avahi-core/server.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/avahi-core/server.c b/avahi-core/server.c
index d913738..241932f 100644
--- a/avahi-core/server.c
+++ b/avahi-core/server.c
@@ -32,9 +32,9 @@
#include <stdio.h>
#include <avahi-common/domain.h>
+#include <avahi-common/timeval.h>
#include "server.h"
-#include "timeval.h"
#include "iface.h"
#include "socket.h"
#include "browse.h"
@@ -459,9 +459,9 @@ void avahi_server_generate_response(AvahiServer *s, AvahiInterface *i, AvahiDnsP
reply = avahi_dns_packet_new_reply(p, size, FALSE, TRUE);
if (!avahi_dns_packet_append_record(reply, r, flush_cache, 0)) {
+ gchar *t;
avahi_dns_packet_free(reply);
-
- gchar *t = avahi_record_to_string(r);
+ t = avahi_record_to_string(r);
avahi_log_warn("Record [%s] too large, doesn't fit in any packet!", t);
g_free(t);
break;