From: Arran Cudbard-Bell Date: Thu, 17 Jun 2021 19:58:35 +0000 (-0500) Subject: Just use the old logic... X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2cda3aca885cf99b38c6640b3308e87b5732af18;p=thirdparty%2Ffreeradius-server.git Just use the old logic... --- diff --git a/src/lib/server/process.h b/src/lib/server/process.h index 15df07c7dc3..731ae0f992f 100644 --- a/src/lib/server/process.h +++ b/src/lib/server/process.h @@ -211,11 +211,11 @@ SEND(generic) PROCESS_TRACE; #ifndef NDEBUG - if ( + if (!( # ifdef PROCESS_CODE_DO_NOT_RESPOND (request->reply->code == PROCESS_CODE_DO_NOT_RESPOND) || # endif - !PROCESS_PACKET_CODE_VALID(request->reply->code)) fr_assert(0); + PROCESS_PACKET_CODE_VALID(request->reply->code))) fr_assert(0); #endif UPDATE_STATE_CS(reply); @@ -274,11 +274,11 @@ RESUME(send_generic) PROCESS_TRACE; #ifndef NDEBUG - if ( + if (!( # ifdef PROCESS_CODE_DO_NOT_RESPOND - (request->reply->code == PROCESS_CODE_DO_NOT_RESPOND) && + (request->reply->code == PROCESS_CODE_DO_NOT_RESPOND) || # endif - !PROCESS_PACKET_CODE_VALID(request->reply->code)) fr_assert(0); + PROCESS_PACKET_CODE_VALID(request->reply->code))) fr_assert(0); #endif /* * If they delete &reply.Packet-Type, tough for them.