Misc code cleanups arising from Google analysis.

No security impleications or CVEs.
This commit is contained in:
Simon Kelley committed 2017-09-25 20:19:55 +01:00
1 parent 51eadb692a
commit 6a0b00f0d6
3 files changed
+5 -3

No files matched your search

+1 -1
View File
@@ -159,7 +159,7 @@ size_t add_pseudoheader(struct dns_header *header, size_t plen, unsigned char *l
/* delete option if we're to replace it. */
p -= 4;
rdlen -= len + 4;
memcpy(p, p+len+4, rdlen - i);
memmove(p, p+len+4, rdlen - i);
PUTSHORT(rdlen, lenp);
lenp -= 2;
}