use bigger buffers for minissdpd responses
This commit is contained in:
parent
2c18850beb
commit
1576c07058
|
@ -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";
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue