udp: Fix pkt_size management
The default value for unset is -1, not 0. Problem introduced in 66028b7ba6b411ba12ef553e9c8f1f4a4fe27710 Bug-Id: 835
This commit is contained in:
parent
72025ac36c
commit
ff7adead0a
@ -464,7 +464,7 @@ static int udp_open(URLContext *h, const char *uri, int flags)
|
|||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (s->pkt_size)
|
if (s->pkt_size > 0)
|
||||||
h->max_packet_size = s->pkt_size;
|
h->max_packet_size = s->pkt_size;
|
||||||
|
|
||||||
p = strchr(uri, '?');
|
p = strchr(uri, '?');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user