[OpenSIPS-Devel] Misplaced radius error problem

Michael Schloh von Bennewitz devel2009 at schloh.com
Thu Dec 24 07:47:36 CET 2009


Hello again,

On wed., Dec 22, 2009, Michael Schloh von Bennewitz wrote:
>Index: modules/aaa_radius/rad.c
>diff -Nau modules/aaa_radius/rad.c.orig modules/aaa_radius/rad.c
>--- modules/aaa_radius/rad.c.orig	2009-12-10 19:57:33.000000000 +0100
>+++ modules/aaa_radius/rad.c	2009-12-22 13:28:05.852461686 +0100
>@@ -273,9 +273,14 @@
> 				return -1;
> 			}
> 		}
>-
>-		LM_ERR("rc_auth function failed\n");
>-		return -1;
>+		else if (result == TIMEOUT_RC || result == REJECT_RC) {
>+			LM_DBG("rc_auth function succeeded with result %d\n", result);
>+			return -1;
>+		}
>+		else /* if (result == ERROR_RC || result == BADRESP_RC) */ {
>+			LM_ERR("rc_auth function failed with result %d\n", result);
>+			return -1;
>+		}
> 	}
> 
> 	if (request->type == AAA_ACCT) {
>
Excuse me, the 'return -1' after 'rc_auth function succeeded...'
should be 'return 0' or 'return OK_RC' of course. Merry christmas.

Cheers,
Michael

-- 
Michael Schloh von Bennewitz
http://michael.schloh.com/



More information about the Devel mailing list