ipupdate: fix endianness-issue
Thank you Sven Roederer for the patch. This closes #9066. git-svn-id: svn://svn.openwrt.org/openwrt/packages@26546 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
11
net/ipupdate/patches/200-byteorder.patch
Normal file
11
net/ipupdate/patches/200-byteorder.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- 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;
|
Reference in New Issue
Block a user