Fix address test on big-endian.

remotes/origin/master-1.1.x
Victor Julien 14 years ago
parent e0afe96920
commit 92536c4952

@ -1647,6 +1647,7 @@ int AddressTestParse02(void)
result = 0; result = 0;
} }
printf("ip %"PRIu32", ip2 %"PRIu32"\n", dd->ip.addr_data32[0], dd->ip2.addr_data32[0]);
DetectAddressFree(dd); DetectAddressFree(dd);
return result; return result;
} }
@ -4028,6 +4029,8 @@ int AddressTestCutIPv410(void)
if (b->ip.addr_data32[0] != ntohl(16909059) || b->ip2.addr_data32[0] != ntohl(16909065)) if (b->ip.addr_data32[0] != ntohl(16909059) || b->ip2.addr_data32[0] != ntohl(16909065))
goto error; goto error;
printf("ip %u ip2 %u ", htonl(a->ip.addr_data32[0]), htonl(a->ip2.addr_data32[0]));
DetectAddressFree(a); DetectAddressFree(a);
DetectAddressFree(b); DetectAddressFree(b);
DetectAddressFree(c); DetectAddressFree(c);

Loading…
Cancel
Save