summaryrefslogtreecommitdiffstats
path: root/source/n/ppp/ppp.CVE-2015-3310.diff
blob: ecf53ce495a62ebcfc79b2e9ccb7ae2d1db44ce5 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- ./pppd/plugins/radius/util.c.orig	2015-04-17 11:43:59.687374237 -0500
+++ ./pppd/plugins/radius/util.c	2015-04-17 11:45:12.612379499 -0500
@@ -77,7 +77,7 @@
   static unsigned short int cnt = 0;
   sprintf (buf, "%08lX%04X%02hX",
 	   (unsigned long int) time (NULL),
-	   (unsigned int) getpid (),
+	   (unsigned int) getpid () % 65535,
 	   cnt & 0xFF);
   cnt++;
   return buf;