Bug 1257472: Forgive rport of 0. r?drno
MozReview-Commit-ID: 12YyYqrt3wR
--- a/media/mtransport/third_party/nICEr/src/ice/ice_parser.c
+++ b/media/mtransport/third_party/nICEr/src/ice/ice_parser.c
@@ -296,17 +296,17 @@ nr_ice_peer_candidate_from_attribute(nr_
skip_whitespace(&str);
if (*str == '\0')
ABORT(R_BAD_DATA);
if (sscanf(str, "%u", &port) != 1)
ABORT(R_BAD_DATA);
- if (port < 1 || port > 0x0FFFF)
+ if (port > 0x0FFFF)
ABORT(R_BAD_DATA);
if ((r=nr_str_port_to_transport_addr(rel_addr,port,transport,&cand->base)))
ABORT(r);
skip_to_past_space(&str);
/* it's expected to be at EOD at this point */