Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 183759 Details for
Bug 260481
net-firewall/ipset-2.4.[8-9] gethostbyname alignment issue
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
new patch from netfilter.org
gethostbyname.patch (text/plain), 450 bytes, created by
Antixrict
on 2009-03-03 12:12:45 UTC
(
hide
)
Description:
new patch from netfilter.org
Filename:
MIME Type:
Creator:
Antixrict
Created:
2009-03-03 12:12:45 UTC
Size:
450 bytes
patch
obsolete
>diff --git a/ipset.c b/ipset.c >index ba007e5..de6a4ec 100644 >--- a/ipset.c >+++ b/ipset.c >@@ -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; > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 260481
:
183364
|
183365
|
183367
|
183412
| 183759