- Fix memory leak with unknown clients

This commit is contained in:
Dirk Meyer 2004-07-09 14:01:54 +00:00
parent 46e48ea220
commit a686683cda
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=113277
2 changed files with 11 additions and 1 deletions

View file

@ -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/

View file

@ -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));