Browse Source

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

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Gavin Halliday 3 years ago
parent
commit
f3c6e0fe26
1 changed files with 2 additions and 1 deletions
  1. 2 1
      roxie/udplib/udptrs.cpp

+ 2 - 1
roxie/udplib/udptrs.cpp

@@ -510,7 +510,8 @@ public:
         }
         }
         MemoryBuffer encryptBuffer;
         MemoryBuffer encryptBuffer;
         if (udpTraceFlow)
         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());
         sendStart(toSend.size());
         for (DataBuffer *buffer: toSend)
         for (DataBuffer *buffer: toSend)
         {
         {