Skip to content

Commit

Permalink
Fixed incorrect pointer in mDNS module
Browse files Browse the repository at this point in the history
All mDNS unittests pass again
  • Loading branch information
Devon Kerkhove committed Oct 21, 2014
1 parent d1ed889 commit 2d5a609
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/pico_mdns.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ static struct pico_dns_header *pico_mdns_add_cookie(struct pico_dns_header *hdr,
return NULL;

ck->header = hdr;
ck->url = (char *)hdr + sizeof(struct pico_dns_header);
ck->url = (char *)(hdr + sizeof(struct pico_dns_header));
pico_to_lowercase(ck->url);
ck->len = len;
ck->qtype = short_be(suffix->qtype);
Expand Down

0 comments on commit 2d5a609

Please sign in to comment.