SOURCES: natmonitor-free_invalid_pointer.patch (NEW) - fix free invalid poi...

charles charles at pld-linux.org
Wed Jun 11 10:13:20 CEST 2008


Author: charles                      Date: Wed Jun 11 08:13:20 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- fix free invalid pointer

---- Files affected:
SOURCES:
   natmonitor-free_invalid_pointer.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/natmonitor-free_invalid_pointer.patch
diff -u /dev/null SOURCES/natmonitor-free_invalid_pointer.patch:1.1
--- /dev/null	Wed Jun 11 10:13:20 2008
+++ SOURCES/natmonitor-free_invalid_pointer.patch	Wed Jun 11 10:13:15 2008
@@ -0,0 +1,20 @@
+--- natmonitor-2.4/natmonitor.c.orig	2008-06-11 09:58:15.000000000 +0200
++++ natmonitor-2.4/natmonitor.c	2008-06-11 09:59:07.397589249 +0200
+@@ -443,12 +443,12 @@
+ void EraseBuffer(){
+ 	int i;
+ 	for(i=0;i<hostnumber;i++){
+-		free(out);
+-		free(in);
+-		hostnumber=0;
+-		timecounter=0;
+-		t=0;
++		free(out[i]);
++		free(in[i]);
+ 	}
++	hostnumber=0;
++	timecounter=0;
++	t=0;
+ }
+ 
+ void EraseGraph(){
================================================================


More information about the pld-cvs-commit mailing list