dibbler icon indicating copy to clipboard operation
dibbler copied to clipboard

coredump when client send declined

Open algorithmn opened this issue 4 years ago • 1 comments

I found the mail with the same problem. Is there any patch for this problem https://klub.com.pl/lists/dibbler-devel/2016-July/000137.html

algorithmn avatar Nov 02 '20 06:11 algorithmn

Does this help?

diff --git a/Messages/Msg.cpp b/Messages/Msg.cpp
index 00f887a7..49dca057 100644
--- a/Messages/Msg.cpp
+++ b/Messages/Msg.cpp
@@ -71,7 +71,10 @@ int TMsg::getSize()
     TOptList::iterator opt;
     for (opt = Options.begin(); opt!=Options.end(); ++opt)
     {
-       pktsize += (*opt)->getSize();
+        if ((*opt) != NULL)
+        {
+           pktsize += (*opt)->getSize();
+        }
     }
     return pktsize + 4;
 }

armcc avatar Nov 16 '20 22:11 armcc