From a686683cda016d0ba0ebe11ffa0259ab6f72a68a Mon Sep 17 00:00:00 2001 From: Dirk Meyer Date: Fri, 9 Jul 2004 14:01:54 +0000 Subject: - Fix memory leak with unknown clients --- net/radiusd-cistron/Makefile | 2 +- net/radiusd-cistron/files/patch-radiusd.c | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 net/radiusd-cistron/files/patch-radiusd.c (limited to 'net/radiusd-cistron') 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)); -- cgit v1.2.3