use bigger buffers for minissdpd responses

This commit is contained in:
Thomas BERNARD 2014-04-12 10:06:53 +02:00
parent 2c18850beb
commit 1576c07058
2 changed files with 2 additions and 2 deletions

View File

@ -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";

View File

@ -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;