This patch changes the return code within the CISCO_ACCOUNTING_HACK from FAIL to...
authorramoore <ramoore>
Sat, 2 Mar 2002 03:31:37 +0000 (03:31 +0000)
committerramoore <ramoore>
Sat, 2 Mar 2002 03:31:37 +0000 (03:31 +0000)
If a FAIL is returned, freeradius does not sent an ACK to the NAS that sent the stop
packet, so it just keeps resending.  NOOP is more appropriate.

src/modules/rlm_sql/rlm_sql.c

index 2d1e6bc..9b1a162 100644 (file)
@@ -550,7 +550,7 @@ static int rlm_sql_accounting(void *instance, REQUEST * request) {
                                                        radius_xlat(logstr, MAX_QUERY_LEN, "rlm_sql:  Stop packet with zero session length.  (user '%{User-Name}', nas '%{NAS-IP-Address}')", request, NULL);
                                                        radlog(L_ERR, logstr);
                                                        sql_release_socket(inst, sqlsocket);
-                                                       return RLM_MODULE_FAIL;
+                                                       return RLM_MODULE_NOOP;
                                                }
 #endif