소스 검색

HPCC-26988 Fix potential core if UDP resend disabled and tracing enabled

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Gavin Halliday 3 년 전
부모
커밋
f3c6e0fe26
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      roxie/udplib/udptrs.cpp

+ 2 - 1
roxie/udplib/udptrs.cpp

@@ -510,7 +510,8 @@ public:
         }
         MemoryBuffer encryptBuffer;
         if (udpTraceFlow)
-            DBGLOG("Sending %u packets [..%u] from max of %u [resend %u queued %u]", (unsigned)toSend.size(), nextSendSequence.load(), permit.max_data, resendList->numActive(), packetsQueued.load(std::memory_order_relaxed));
+            DBGLOG("Sending %u packets [..%u] from max of %u [resend %u queued %u]",
+                   (unsigned)toSend.size(), nextSendSequence.load(), permit.max_data, resendList ? resendList->numActive() : 0, packetsQueued.load(std::memory_order_relaxed));
         sendStart(toSend.size());
         for (DataBuffer *buffer: toSend)
         {