Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

correction of counter usage for retries, fix to minor memory leak #1

Merged
merged 2 commits into from
Jul 25, 2011

Conversation

cecst
Copy link

@cecst cecst commented Jul 24, 2011

These are two of the patches submitted to you and forwarded to me for review. They look straightforward. I do not see any code that could cause dereferencing of a null pointer in the memory-leak fix, and the counter usage correction does restore what the comment says was the intended action when retry_max==0.

widman added 2 commits July 23, 2011 21:51
    Submitted by Lewis Adam-VNQM87 <VNQM87 a t motorola.com> on Tue, 18 May 2010 20:10:37 +0100
    patch to fix the following problem:
     Looking at the retry handling in rc_send_server() in sendserver.c, it
     appears that "retries" actually means "tries".
       if (++retries >= retry_max) {... }
     After the first time out, retries is pre-incremented to 1 thus being greater than or equal
     to 0 or 1 (so setting retry_max to 0 or 1 has the same effect).
From: Alex Massover <alex a t jajah.com>
Date: Sun, 21 Mar 2010 13:23:05 +0200

If secret string is defined in radiusclient.conf like following:
acctserver           localhost:1646:mysecret
(and not in 'servers' file - which btw is better way because
'servers' file is rereaded for every request), it leaks, because
+serv->secret is never freed.
alandekok added a commit that referenced this pull request Jul 25, 2011
correction of counter usage for retries, fix to minor memory leak
@alandekok alandekok merged commit 2c4f445 into FreeRADIUS:master Jul 25, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants