From: Richard Mudgett Date: Mon, 31 Jul 2017 19:20:02 +0000 (-0500) Subject: res_pjsip_registrar.c: Remove unnecessary CMP_STOP. X-Git-Tag: 13.18.0-rc1~110 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a32614a2a84f2f7c02b06dadce95d89c18d15a42;p=thirdparty%2Fasterisk.git res_pjsip_registrar.c: Remove unnecessary CMP_STOP. Most uses of CMP_STOP are superfluous and are only respected when OBJ_MULTIPLE is used to search the container. Change-Id: I20571a202ec0aa1098bb2749eeba18de7ca110b8 --- diff --git a/res/res_pjsip_registrar.c b/res/res_pjsip_registrar.c index d54bffa0c7..4c38e6d1f2 100644 --- a/res/res_pjsip_registrar.c +++ b/res/res_pjsip_registrar.c @@ -123,7 +123,7 @@ static int registrar_find_contact(void *obj, void *arg, int flags) const struct registrar_contact_details *details = arg; pjsip_uri *contact_uri = pjsip_parse_uri(details->pool, (char*)contact->uri, strlen(contact->uri), 0); - return (pjsip_uri_cmp(PJSIP_URI_IN_CONTACT_HDR, details->uri, contact_uri) == PJ_SUCCESS) ? CMP_MATCH | CMP_STOP : 0; + return (pjsip_uri_cmp(PJSIP_URI_IN_CONTACT_HDR, details->uri, contact_uri) == PJ_SUCCESS) ? CMP_MATCH : 0; } /*! \brief Internal function which validates provided Contact headers to confirm that they are acceptable, and returns number of contacts */