summaryrefslogtreecommitdiff
path: root/net/pecl-radius
diff options
context:
space:
mode:
Diffstat (limited to 'net/pecl-radius')
-rw-r--r--net/pecl-radius/Makefile2
-rw-r--r--net/pecl-radius/files/patch-radlib.c10
2 files changed, 11 insertions, 1 deletions
diff --git a/net/pecl-radius/Makefile b/net/pecl-radius/Makefile
index 782f1c9ed3b2..013651b682d6 100644
--- a/net/pecl-radius/Makefile
+++ b/net/pecl-radius/Makefile
@@ -1,6 +1,6 @@
PORTNAME= radius
PORTVERSION= 1.4.0b1
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= net security pear
MAINTAINER= sunpoet@FreeBSD.org
diff --git a/net/pecl-radius/files/patch-radlib.c b/net/pecl-radius/files/patch-radlib.c
new file mode 100644
index 000000000000..ce4e016181dd
--- /dev/null
+++ b/net/pecl-radius/files/patch-radlib.c
@@ -0,0 +1,10 @@
+--- radlib.c.orig 2025-05-06 17:27:50 UTC
++++ radlib.c
+@@ -748,7 +748,6 @@ rad_auth_open(void)
+
+ h = (struct rad_handle *)malloc(sizeof(struct rad_handle));
+ if (h != NULL) {
+- php_srand(time(NULL) * getpid() * (unsigned long) (php_combined_lcg() * 10000.0));
+ h->fd = -1;
+ h->num_servers = 0;
+ h->ident = (zend_long) php_mt_rand();