dibbler
dibbler copied to clipboard
coredump when client send declined
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
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;
}