Skip to content

Commit

Permalink
ua: avoid empty IP in SDP as local address
Browse files Browse the repository at this point in the history
A c line with address 0.0.0.0 is allowed. In this case this should not be used
as laddr.
  • Loading branch information
cspiel1 committed May 23, 2024
1 parent 49eafdc commit c4c8cb6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ua.c
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,9 @@ static int sdp_connection(const struct mbuf *mb, int *af, struct sa *sa)
err |= net_set_dst_scopeid(net, sa);

out:
if (!err && !sa_isset(sa, SA_ADDR))
return EINVAL;

return err;
}

Expand Down

0 comments on commit c4c8cb6

Please sign in to comment.