Commit ff7adead authored by Luca Barbato's avatar Luca Barbato

udp: Fix pkt_size management

The default value for unset is -1, not 0.

Problem introduced in 66028b7b

Bug-Id: 835
parent 72025ac3
......@@ -464,7 +464,7 @@ static int udp_open(URLContext *h, const char *uri, int flags)
goto fail;
}
if (s->pkt_size)
if (s->pkt_size > 0)
h->max_packet_size = s->pkt_size;
p = strchr(uri, '?');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment