pkgsrc/chat/licq-core/patches/patch-aa
tonnerre 2b32a72a59 Fix multiple connection handling Denial of Service vulnerability in licq
(CVE-2008-1996). Before this, the application would crash if too many TCP
connections are opened.
2008-05-11 04:12:34 +00:00

20 lines
542 B
Text

$NetBSD: patch-aa,v 1.2 2008/05/11 04:12:34 tonnerre Exp $
--- include/licq_socket.h.orig 2006-10-18 10:59:12.000000000 +0200
+++ include/licq_socket.h
@@ -6,6 +6,7 @@
#endif
#include <sys/types.h>
+#include <sys/time.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
@@ -250,6 +251,7 @@ public:
fd_set SocketSet() { return m_sSockets.SocketSet(); }
int LargestSocket() { return m_sSockets.Largest(); }
+ unsigned short Num() { return m_sSockets.Num(); }
protected:
CSocketSet m_sSockets;