]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip.c: Fix endpoint identifier registration name search.
authorRichard Mudgett <rmudgett@digium.com>
Thu, 4 Jan 2018 23:42:59 +0000 (17:42 -0600)
committerRichard Mudgett <rmudgett@digium.com>
Sat, 6 Jan 2018 00:07:49 +0000 (18:07 -0600)
commit0feca9bc184824e656e59410863650703c26088c
tree49cd75f58c34ad78bac60ea1367e604abc6b5364
parentb8271826b358afd887f9476201fb7fdf12b7119c
res_pjsip.c: Fix endpoint identifier registration name search.

If an endpoint identifier name in the endpoint_identifier_order list is a
prefix to the identifier we are registering, we could install it in the
wrong position of the list.

Assuming
endpoint_identifier_order=username,ip,anonymous

then registering the "ip_only" identifier would put the identifier in the
wrong position of the priority list.

* Fix incorrect strncmp() string prefix matching.

Change-Id: Ib8819ec4b811da8a27419fd93528c54d34f01484
res/res_pjsip.c