*/
if (!request->in_request_hash &&
request->proxy &&
+ (request->packet->code != request->proxy->code) &&
((request->proxy->code == PW_COA_REQUEST) ||
(request->proxy->code == PW_DISCONNECT_REQUEST))) {
/*
}
#ifdef WITH_COA
- if ((request->proxy->code != PW_COA_REQUEST) &&
- (request->proxy->code != PW_DISCONNECT_REQUEST))
- /* quietly follow the next if request->proxy_reply */
+ if (request->packet->code == request->proxy->code)
+ /*
+ * Don't run the next bit if we originated a CoA
+ * packet, after receiving an Access-Request or
+ * Accounting-Request.
+ */
#endif
/*
* This is a response to a CoA packet that we originated.
* It's handled differently from normal proxied packets.
*/
- if ((request->proxy->code == PW_COA_REQUEST) ||
- (request->proxy->code == PW_DISCONNECT_REQUEST)) {
+ if (request->packet->code != request->proxy->code) {
/*
* The parent request is done, but we haven't
* figured that out yet. Separate the two