blob: 403769220da89789b1135e1ebd85d422a7255131 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
$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) {
|