From 6965f201c93029422008e374d8850dc6b181886b Mon Sep 17 00:00:00 2001 From: Darell Tan Date: Thu, 11 Oct 2012 23:39:03 +0800 Subject: [PATCH] Bugfix: PTR records shouldn't have the cache flush bit set. --- mdns.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mdns.c b/mdns.c index b545069..f38e0f7 100644 --- a/mdns.c +++ b/mdns.c @@ -381,6 +381,7 @@ struct rr_entry *rr_create_srv(uint8_t *name, uint16_t port, uint8_t *target) { struct rr_entry *rr_create_ptr(uint8_t *name, struct rr_entry *d_rr) { DECL_MALLOC_ZERO_STRUCT(rr, rr_entry); FILL_RR_ENTRY(rr, name, RR_PTR); + rr->cache_flush = 0; // PTRs shouldn't have their cache flush bit set rr->data.PTR.entry = d_rr; return rr; }