Bug 1257472: Forgive rport of 0. r=drno,ekr a=sylvestre
authorByron Campen [:bwc] <docfaraday@gmail.com>
Thu, 17 Mar 2016 10:50:33 -0500
changeset 323583 f601dc16ab452d44f545181aa0a0f67920e308fb
parent 323582 b424b3c0b111bc34487a235e32b438f53603d998
child 323584 15f0abad8becd42651d1624b1d9099b341751e31
push id5913
push userjlund@mozilla.com
push dateMon, 25 Apr 2016 16:57:49 +0000
treeherdermozilla-beta@dcaf0a6fa115 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdrno, ekr, sylvestre
bugs1257472
milestone47.0a2
Bug 1257472: Forgive rport of 0. r=drno,ekr a=sylvestre MozReview-Commit-ID: 12YyYqrt3wR
media/mtransport/third_party/nICEr/src/ice/ice_parser.c
--- 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 */