From 1576c07058d455772fef9aa486b49c91e42683d8 Mon Sep 17 00:00:00 2001 From: Thomas BERNARD Date: Sat, 12 Apr 2014 10:06:53 +0200 Subject: [PATCH] use bigger buffers for minissdpd responses --- minissdpd/testminissdpd.c | 2 +- miniupnpc/minissdpc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/minissdpd/testminissdpd.c b/minissdpd/testminissdpd.c index 52ceb6e..5670783 100644 --- a/minissdpd/testminissdpd.c +++ b/minissdpd/testminissdpd.c @@ -92,7 +92,7 @@ main(int argc, char * * argv) char overflow[] = { 0x01, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }; int s; int i; - unsigned char buf[2048]; + unsigned char buf[16*1024]; ssize_t n; const char * sockpath = "/var/run/minissdpd.sock"; diff --git a/miniupnpc/minissdpc.c b/miniupnpc/minissdpc.c index a540341..8b7421b 100644 --- a/miniupnpc/minissdpc.c +++ b/miniupnpc/minissdpc.c @@ -46,7 +46,7 @@ getDevicesFromMiniSSDPD(const char * devtype, const char * socketpath) { struct UPNPDev * tmp; struct UPNPDev * devlist = NULL; - unsigned char buffer[2048]; + unsigned char buffer[4*1024]; /* is that enough ? */ ssize_t n; unsigned char * p; unsigned char * url;