Commit 22b135a1 authored by Simon Kelley's avatar Simon Kelley

Fix paretheses in ADD_RDLEN - it always returned 1 before.

parent 0f08983d
...@@ -25,7 +25,7 @@ static int add_resource_record(struct dns_header *header, char *limit, int *trun ...@@ -25,7 +25,7 @@ static int add_resource_record(struct dns_header *header, char *limit, int *trun
((size_t)((pp) - (unsigned char *)(header) + (len)) <= (plen)) ((size_t)((pp) - (unsigned char *)(header) + (len)) <= (plen))
#define ADD_RDLEN(header, pp, plen, len) \ #define ADD_RDLEN(header, pp, plen, len) \
(!CHECK_LEN(header, pp, plen, len) ? 0 : (long)((pp) += (len)), 1) (!CHECK_LEN(header, pp, plen, len) ? 0 : (((pp) += (len)), 1))
static int extract_name(struct dns_header *header, size_t plen, unsigned char **pp, static int extract_name(struct dns_header *header, size_t plen, unsigned char **pp,
char *name, int isExtract, int extrabytes) char *name, int isExtract, int extrabytes)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment