Make it closer to v2.1.x for consistency
authorAlan T. DeKok <aland@freeradius.org>
Wed, 28 Apr 2010 06:40:59 +0000 (08:40 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 31 May 2010 08:16:21 +0000 (10:16 +0200)
src/main/event.c

index 5ac47d1..4a94d04 100644 (file)
@@ -1529,8 +1529,14 @@ static int originated_coa_request(REQUEST *request)
        rad_assert(!request->in_proxy_hash);
        rad_assert(request->proxy_reply == NULL);
 
+       /*
+        *      Check whether we want to originate one, or cancel one.
+        */
        vp = pairfind(request->config_items, PW_SEND_COA_REQUEST, 0);
-       if (!vp && request->coa) vp = pairfind(request->coa->proxy->vps, PW_SEND_COA_REQUEST, 0);
+       if (!vp && request->coa) {
+               vp = pairfind(request->coa->proxy->vps, PW_SEND_COA_REQUEST, 0);
+       }
+
        if (vp) {
                if (vp->vp_integer == 0) {
                        ev_request_free(&request->coa);
@@ -4175,4 +4181,3 @@ void radius_handle_request(REQUEST *request, RAD_REQUEST_FUNP fun)
        DEBUG2("Going to the next request");
        return;
 }
-