a proxy reply through the server again. Instead, we simply drop
the duplicate proxy reply.
Based on input from Vesselin Atanasov <vesselin@bgnet.bg>
}
assert(request->magic == REQUEST_MAGIC);
+ assert(request->reply == NULL);
/*
* The request passes many of our sanity checks. From
request_free(&request);
return NULL;
}
- } /* else there's no reply yet. */
+ } else if (oldreq->reply) {
+ /*
+ * Maybe we've already sent a reply to the NAS, in
+ * which case the new 'request' is really a
+ * duplicate, that should just be dropped.
+ */
+ DEBUG2("Ignoring proxy reply, after we've sent a reply to the NAS");
+ request_free(&request);
+ return NULL;
+ }
} else {
/*