dont fail on zero port in tcp controller

remotes/origin/2.0
Richard Fuchs 14 years ago
parent f901b22dc5
commit 7f0948544a

@ -455,7 +455,7 @@ static int streams_parse_func(char **a, void **ret, void *p) {
st->mediatype = strdup(a[2] ? : ""); /* XXX should use string chunks */
st->num = ++(*i);
if (!st->port)
if (!st->port && strcmp(a[1], "0"))
goto fail;
*ret = st;

Loading…
Cancel
Save