summaryrefslogtreecommitdiffstats
path: root/avahi-core/probe-sched.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2007-04-12 20:43:29 +0000
committerLennart Poettering <lennart@poettering.net>2007-04-12 20:43:29 +0000
commitbbf6b92f662ed909d5b4fca4a43b19e815812b3e (patch)
tree4bab07da0f40615b5b752f26fdf4968e6e13d72b /avahi-core/probe-sched.c
parent23addc6fe9cd09b395d327a4f6f981f2981ae63b (diff)
Fix registration of really large records, like it is necessary for XEP-0174 (jabber+bonjour)
Based on an original patch by Sjoerd Simons, but heavily modified. (Closes #131) git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1405 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-core/probe-sched.c')
-rw-r--r--avahi-core/probe-sched.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/avahi-core/probe-sched.c b/avahi-core/probe-sched.c
index f430bce..106bb81 100644
--- a/avahi-core/probe-sched.c
+++ b/avahi-core/probe-sched.c
@@ -250,10 +250,7 @@ static void elapse_callback(AVAHI_GCC_UNUSED AvahiTimeEvent *e, void* data) {
avahi_record_get_estimate_size(pj->record) +
AVAHI_DNS_PACKET_HEADER_SIZE;
- if (size > AVAHI_DNS_PACKET_SIZE_MAX)
- size = AVAHI_DNS_PACKET_SIZE_MAX;
-
- if (!(p = avahi_dns_packet_new_query(size)))
+ if (!(p = avahi_dns_packet_new_query(size + AVAHI_DNS_PACKET_EXTRA_SIZE)))
return; /* OOM */
if (!(k = avahi_key_new(pj->record->key->name, pj->record->key->clazz, AVAHI_DNS_TYPE_ANY))) {