packages/net/pptpd/patches/001-bad_pqueue_debug.patch
hauke 42582ae223 pptpd: bump to version 1.4.0 (fix bugs #12909, #15490, #15635)
Old pptpd 1.3.4 suffers from an old bug that gcc 4.8 has apparently brought
to surface (analysed in bug #12909).

The problem has been fixed upstream and is included in 1.4.0 release from
October 2013.
http://sourceforge.net/p/poptop/mailman/message/30453437/
db9a847936/
http://sourceforge.net/projects/poptop/

The patch bumps pptpd from 6-year old 1.3.4 to 1.4.0.

Related bugs #15428, #15635, #12909, #15490.
https://dev.openwrt.org/ticket/12909
https://dev.openwrt.org/ticket/15428  (AA12.09)
https://dev.openwrt.org/ticket/15490
https://dev.openwrt.org/ticket/15635

I have compiled and briefly tested on ar71xx/wndr3700 with trunk.

signed-off-by: hannu.nyman@iki.fi


git-svn-id: svn://svn.openwrt.org/openwrt/packages@40671 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-05-03 11:02:55 +00:00

19 lines
404 B
Diff

--- a/pqueue.c
+++ b/pqueue.c
@@ -7,13 +7,11 @@
#include "pqueue.h"
#ifdef DEBUG_PQUEUE
-#define DEBUG_ON 1
+#define DEBUG_CMD(_a) { _a }
#else
-#define DEBUG_ON 0
+#define DEBUG_CMD(_a)
#endif
-#define DEBUG_CMD(_a) if (DEBUG_ON) { _a }
-
#define MIN_CAPACITY 128 /* min allocated buffer for a packet */
static int pqueue_alloc (int seq, unsigned char *packet, int packlen, pqueue_t **new);