<p></p>
<blockquote>
<p>After the binary match change, is it so that there is no need to change this test?</p>
<pre><code>/* Store tag and flags and return result */
        if((res != NULL)
                                        && ((transport == PROTO_NONE) || (res->transport_code == transport))
                                        && ((src_port == 0) || (res->port == src_port))) {
</code></pre>
</blockquote>
<p>Yes, you're right. Since the updated bsearch() already has ports comparison,<br>
I think the following part looks excessive (doesn't break anything though):<br>
<code>&& ((src_port == 0) || (res->port == src_port))) {</code></p>
<p>I'll remove it.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/pull/2859#issuecomment-922425300">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZIQWGU4CJ6IA4XZFIDUCWCSVANCNFSM5EGXU5OQ">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/ABO7UZPUVMTUSADKG46UA43UCWCSVA5CNFSM5EGXU5O2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOG35RPVA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/pull/2859#issuecomment-922425300",
"url": "https://github.com/kamailio/kamailio/pull/2859#issuecomment-922425300",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>