SOURCES: oidentd-multiple-ip.patch - fixed allocation bug

baggins baggins at pld-linux.org
Tue Apr 15 16:38:40 CEST 2008


Author: baggins                      Date: Tue Apr 15 14:38:40 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- fixed allocation bug

---- Files affected:
SOURCES:
   oidentd-multiple-ip.patch (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SOURCES/oidentd-multiple-ip.patch
diff -u SOURCES/oidentd-multiple-ip.patch:1.1 SOURCES/oidentd-multiple-ip.patch:1.2
--- SOURCES/oidentd-multiple-ip.patch:1.1	Mon Apr 14 15:19:50 2008
+++ SOURCES/oidentd-multiple-ip.patch	Tue Apr 15 16:38:35 2008
@@ -67,7 +67,7 @@
 -		bound_fds[0] = ret;
 -		bound_fds[1] = -1;
 -
-+		bound_fds = xrealloc(bound_fds, naddr + 2 * sizeof(int));
++		bound_fds = xrealloc(bound_fds, (naddr + 2) * sizeof(int));
 +		bound_fds[naddr] = ret;
 +		bound_fds[naddr+1] = -1;
 +		naddr++;
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/oidentd-multiple-ip.patch?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list