13 lines
440 B
Plaintext
13 lines
440 B
Plaintext
$OpenBSD: patch-libGeoIP_GeoIP_c,v 1.7 2008/10/10 21:40:40 steven Exp $
|
|
--- libGeoIP/GeoIP.c.orig Tue Sep 16 17:23:25 2008
|
|
+++ libGeoIP/GeoIP.c Fri Oct 10 23:31:05 2008
|
|
@@ -820,7 +820,7 @@ unsigned long _GeoIP_lookupaddress (const char *host)
|
|
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);
|