]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Just use the old logic...
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 17 Jun 2021 19:58:35 +0000 (14:58 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 17 Jun 2021 19:58:35 +0000 (14:58 -0500)
src/lib/server/process.h

index 15df07c7dc37326899fbe4e4afafed5704304880..731ae0f992ff607f62f4325f26ea3bd02110228d 100644 (file)
@@ -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.