Unified · Split
| @@ -740,6 +740,10 @@ static int udp_open(URLContext *h, const char *uri, int flags) · 739 unmodified lines | |||
| 740 | if (av_find_info_tag(buf, sizeof(buf), "localaddr", p)) { | 740 | if (av_find_info_tag(buf, sizeof(buf), "localaddr", p)) { |
| 741 | av_freep(&s->localaddr); | 741 | av_freep(&s->localaddr); |
| 742 | s->localaddr = av_strdup(buf); | 742 | s->localaddr = av_strdup(buf); |
| 743 | if (!s->localaddr) { | ||
| 744 | ret = AVERROR(ENOMEM); | ||
| 745 | goto fail; | ||
| 746 | } | ||
| 743 | } | 747 | } |
| 744 | if (av_find_info_tag(buf, sizeof(buf), "sources", p)) { | 748 | if (av_find_info_tag(buf, sizeof(buf), "sources", p)) { |
| 745 | if ((ret = ff_ip_parse_sources(h, buf, &s->filters)) < 0) | 749 | if ((ret = ff_ip_parse_sources(h, buf, &s->filters)) < 0) |