aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2004-07-09 14:01:54 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2004-07-09 14:01:54 +0000
commita686683cda016d0ba0ebe11ffa0259ab6f72a68a (patch)
tree0f96cfd3903bd4aedffd1ce8c07940cb669cd939
parent46e48ea220e4f508a26c52237d8a89da4f6fc558 (diff)
downloadports-a686683cda016d0ba0ebe11ffa0259ab6f72a68a.tar.gz
ports-a686683cda016d0ba0ebe11ffa0259ab6f72a68a.zip
- Fix memory leak with unknown clients
Notes
Notes: svn path=/head/; revision=113277
-rw-r--r--net/radiusd-cistron/Makefile2
-rw-r--r--net/radiusd-cistron/files/patch-radiusd.c10
2 files changed, 11 insertions, 1 deletions
diff --git a/net/radiusd-cistron/Makefile b/net/radiusd-cistron/Makefile
index 965a231a345c..a110e5e443eb 100644
--- a/net/radiusd-cistron/Makefile
+++ b/net/radiusd-cistron/Makefile
@@ -7,7 +7,7 @@
PORTNAME= radiusd-cistron
PORTVERSION= 1.6.7
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= net
MASTER_SITES= ftp://ftp.cistron.nl/pub/people/miquels/radius/
diff --git a/net/radiusd-cistron/files/patch-radiusd.c b/net/radiusd-cistron/files/patch-radiusd.c
new file mode 100644
index 000000000000..7bafe4d3c2b1
--- /dev/null
+++ b/net/radiusd-cistron/files/patch-radiusd.c
@@ -0,0 +1,10 @@
+--- src/radiusd.c.orig Wed Jul 2 11:39:03 2003
++++ src/radiusd.c Fri Jul 9 15:57:46 2004
+@@ -612,6 +612,7 @@
+ if ((cl = client_find(authreq->ipaddr)) == NULL) {
+ log(L_ERR, "packet from unknown client/host: %s",
+ client_name(authreq->ipaddr));
++ authfree(authreq);
+ return -1;
+ }
+ strNcpy(authreq->secret, cl->secret, sizeof(authreq->secret));