aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/ehnt/files/patch-ehnt-lookup
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2004-05-24 09:06:37 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2004-05-24 09:06:37 +0000
commit2bcc01a77cd2bb9960ea172a5542ebf1e534e424 (patch)
tree29584db9b01456d27e179430f59a9b6d6ec334f0 /net-mgmt/ehnt/files/patch-ehnt-lookup
parent242b54da9f20d04d9af765d843bdc22d45860cbb (diff)
Notes
Diffstat (limited to 'net-mgmt/ehnt/files/patch-ehnt-lookup')
-rw-r--r--net-mgmt/ehnt/files/patch-ehnt-lookup25
1 files changed, 21 insertions, 4 deletions
diff --git a/net-mgmt/ehnt/files/patch-ehnt-lookup b/net-mgmt/ehnt/files/patch-ehnt-lookup
index d6f6d655ef11..3e43b700e73d 100644
--- a/net-mgmt/ehnt/files/patch-ehnt-lookup
+++ b/net-mgmt/ehnt/files/patch-ehnt-lookup
@@ -1,8 +1,25 @@
---- ehnt_lookup.c.orig Wed Jul 18 00:47:37 2001
-+++ ehnt_lookup.c Fri Aug 3 19:54:34 2001
-@@ -36,7 +36,7 @@
+
+$FreeBSD$
+
+--- ehnt_lookup.c.orig Thu Oct 4 22:18:29 2001
++++ ehnt_lookup.c Mon May 24 12:01:50 2004
+@@ -25,7 +25,7 @@
- memset(ASNs,0,sizeof(ASNs));
+
+ #define ASNCOUNT 65536
+-char * ASNs[ASNCOUNT];
++char ** ASNs;
+
+ int Init_ASN_Lookups(void) {
+
+@@ -34,9 +34,11 @@
+ int asn;
+ char line[100],asnname[100];
+
+- memset(ASNs,0,sizeof(ASNs));
++ ASNs = calloc(ASNCOUNT, sizeof(char *));
++ if (ASNs == NULL)
++ perror("out of memory");
- if ( ! (f=fopen ("asnc.txt","r")) ) {
+ if ( ! (f=fopen (ASNCDIR "/asnc.txt","r")) ) {