1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00
freebsd-ports/net/msntp/files/patch-internet.c
Beech Rintoul 977ad81fa2 - Fix with a legitimate host name that begins with a digit.
- Makefile cleanup
- Bump portrevision

PR:		ports/120957
Submitted by:	Virgil Champlin <champlin@stupidog.org>
2008-02-22 19:39:27 +00:00

23 lines
694 B
C

--- internet.c.orig Sat Sep 30 10:42:51 2000
+++ internet.c Thu Feb 21 09:18:31 2008
@@ -77,17 +77,8 @@
/* Look up the Internet name or IP number. */
- if (! isdigit(hostname[0])) {
- errno = 0;
- host = gethostbyname(hostname);
- } else {
- if ((ipaddr = inet_addr(hostname)) == (unsigned long)-1)
- fatal(0,"invalid IP number %s",hostname);
- network_to_address(address,ipaddr);
- errno = 0;
- host = gethostbyaddr((void *)address,sizeof(struct in_addr),
- AF_INET);
- }
+ errno = 0;
+ host = gethostbyname(hostname);
/* Now clear the timer and check the result. */