From: Alan T. DeKok Date: Thu, 15 Jun 2017 19:27:27 +0000 (-0400) Subject: set process after decoding, not before X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee1abba346466775a6cd727706ec6736dad68dce;p=thirdparty%2Ffreeradius-server.git set process after decoding, not before --- diff --git a/src/lib/io/worker.c b/src/lib/io/worker.c index dfd215bfcad..f04c5cd6550 100644 --- a/src/lib/io/worker.c +++ b/src/lib/io/worker.c @@ -688,12 +688,6 @@ static REQUEST *fr_worker_get_request(fr_worker_t *worker, fr_time_t now) request->async->io = cd->io; io = request->async->io; - /* - * Call the main protocol handlr to set the right async - * process function. - */ - io->set_process(request, io->app_ctx); - /* * Now that the "request" structure has been initialized, go decode the packet. * @@ -708,6 +702,12 @@ nak: return NULL; } + /* + * Call the main protocol handlr to set the right async + * process function. + */ + io->set_process(request, io->app_ctx); + rad_assert(request->async->process != NULL); /*