2007-04-07 04:56:35 +00:00
|
|
|
$OpenBSD: patch-libGeoIP_GeoIP_c,v 1.5 2007/04/07 04:56:35 steven Exp $
|
|
|
|
--- libGeoIP/GeoIP.c.orig Fri Feb 9 00:12:48 2007
|
|
|
|
+++ libGeoIP/GeoIP.c Sat Apr 7 06:47:48 2007
|
|
|
|
@@ -641,7 +641,7 @@ unsigned long _GeoIP_lookupaddress (const char *host)
|
2005-12-09 19:33:45 +00:00
|
|
|
free(buf);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
- addr = *((unsigned long *) phe->h_addr_list[0]);
|
|
|
|
+ addr = (unsigned long) *((in_addr_t *) phe->h_addr_list[0]);
|
|
|
|
}
|
|
|
|
#ifdef HAVE_GETHOSTBYNAME_R
|
|
|
|
free(buf);
|