bad-pqueue-debug.patch 560 B

1234567891011121314151617181920
  1. diff -urN pptpd-1.3.0/pqueue.c.orig pptpd-1.3.0/pqueue.c
  2. --- pptpd-1.3.0.orig/pqueue.c 2005-03-31 06:55:53.000000000 +0200
  3. +++ pptpd-1.3.0/pqueue.c 2008-10-14 13:30:20.000000000 +0200
  4. @@ -6,14 +6,11 @@
  5. #include "pqueue.h"
  6. #ifdef DEBUG_PQUEUE
  7. -#define DEBUG_ON 1
  8. +#define DEBUG_CMD(_a) { _a }
  9. #else
  10. -#define DEBUG_ON 0
  11. +#define DEBUG_CMD(_a)
  12. #endif
  13. -#define DEBUG_CMD(_a) if (DEBUG_ON) { _a }
  14. -
  15. -
  16. #define MIN_CAPACITY 128 /* min allocated buffer for a packet */
  17. static int pqueue_alloc (int seq, unsigned char *packet, int packlen, pqueue_t **new);