Commit dce4bc7b authored by Pekka Pessi's avatar Pekka Pessi

sres: fix loop bound check in sres_sip_url_transport()

MeeGo Coverity issue CID#11746
parent 98d0e38f
......@@ -516,7 +516,7 @@ sres_sip_url_transport(url_t const *uri)
if (len >= sizeof parameter)
return -1;
for (i = 0; sres_sip_tports[i].stp_name; i++) {
for (i = 0; sres_sip_tports[i].stp_number; i++) {
if (su_casematch(parameter, sres_sip_tports[i].stp_name))
return sres_sip_tports[i].stp_number;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment