summaryrefslogtreecommitdiff
path: root/source/n/ppp/ppp.CVE-2015-3310.diff
diff options
context:
space:
mode:
Diffstat (limited to 'source/n/ppp/ppp.CVE-2015-3310.diff')
-rw-r--r--source/n/ppp/ppp.CVE-2015-3310.diff11
1 files changed, 11 insertions, 0 deletions
diff --git a/source/n/ppp/ppp.CVE-2015-3310.diff b/source/n/ppp/ppp.CVE-2015-3310.diff
new file mode 100644
index 00000000..ecf53ce4
--- /dev/null
+++ b/source/n/ppp/ppp.CVE-2015-3310.diff
@@ -0,0 +1,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;