FreeBSD Bugzilla – Attachment 17428 Details for
Bug 31632
ip6fw error under DNS dislabled environment
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 429 bytes, created by
Yuichi SHIMODA
on 2001-10-30 10:10:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Yuichi SHIMODA
Created:
2001-10-30 10:10:01 UTC
Size:
429 bytes
patch
obsolete
>--- /usr/src/sbin/ip6fw/ip6fw.c.ORIG Tue Aug 7 10:27:56 2001 >+++ /usr/src/sbin/ip6fw/ip6fw.c Tue Oct 30 17:38:00 2001 >@@ -516,9 +516,12 @@ > char *host; > u_char *addr; > { >- struct hostent *he = gethostbyname2(host, family); >+ struct hostent *he; > >- if (!he) >+ if (inet_pton(family, host, &addr) == 1) >+ return 0; >+ >+ if (!(he = gethostbyname2(host, family))) > return(-1); > > memcpy(addr, he->h_addr_list[0], he->h_length);
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 31632
: 17428