Files
pkgsrc-ng/sysutils/monit/patches/patch-aa
2013-09-26 17:14:40 +02:00

16 lines
491 B
Plaintext

$NetBSD: patch-aa,v 1.2 2007/12/15 16:41:51 seb Exp $
Fix for LP64 big-endian platforms.
--- http/engine.c.orig 2007-07-29 20:23:26.000000000 +0000
+++ http/engine.c
@@ -246,7 +246,7 @@ int add_host_allow(char *name) {
struct sockaddr_in *sin = (struct sockaddr_in *)_res->ai_addr;
NEW(h);
- memcpy(&h->network, &sin->sin_addr, 4);
+ h->network = sin->sin_addr.s_addr;
h->mask= 0xffffffff;
LOCK(hostlist_mutex)
if(hostlist) {