diff options
author | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2009-03-06 10:58:54 +0100 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2009-03-06 10:58:54 +0100 |
commit | 77930a8b4c61d261e29fae97dd5bec1352298c44 (patch) | |
tree | 33b7289fc9dc0ac27dfa8c9959227de5759ad947 /ipset.c | |
parent | 6817c5fc8da5566a8513625accfcb4031e3892a7 (diff) |
Fix alignment issue on parisc arhictecture (bugzilla id 582).
Diffstat (limited to 'ipset.c')
-rw-r--r-- | ipset.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -626,7 +626,8 @@ void parse_ip(const char *str, ip_set_ip_t * ip) "host/network `%s' resolves to serveral ip-addresses. " "Please specify one.", str); - *ip = ntohl(((struct in_addr *) host->h_addr_list[0])->s_addr); + memcpy(&addr, host->h_addr_list[0], sizeof(struct in_addr)); + *ip = ntohl(addr.s_addr); return; } |