1
0
This repository has been archived on 2025-06-16. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
openwrt_archive/net/ipupdate/patches/200-byteorder.patch
Hauke Mehrtens f0eb1dae67 ipupdate: fix endianness-issue
Thank you Sven Roederer for the patch.

This closes #9066.


SVN-Revision: 26546
2011-04-09 15:28:22 +00:00

12 lines
316 B
Diff

--- a/include/dns.c
+++ b/include/dns.c
@@ -127,7 +127,7 @@ int dns_t2wtsig(char *pktdata, unsigned
tsig.hitime = 0;
tsig.lotime = htonl(signtime);
tsig.fudge = htons(fudge);
- tsig.macsize = 0x1000; //16
+ tsig.macsize = htons(16);
memset(tsig.mac, 0, 16);
memcpy(&tsig.id, pktdata, 2);
tsig.error = 0;