]> git.ipfire.org Git - thirdparty/asterisk.git/commit
enum.c: Add support for regular expression flag in NAPTR record
authorSean Bright <sean.bright@gmail.com>
Fri, 6 Mar 2020 20:59:37 +0000 (15:59 -0500)
committerSean Bright <sean.bright@gmail.com>
Fri, 6 Mar 2020 21:06:42 +0000 (15:06 -0600)
commit517224ce85dcd0676ffbde5648c82fee84c976e5
tree6a69dc7b6745384a6aaf5c02b43c57ae4045f3de
parent1ce0dfd1446d608c458525484eebbd108cbeade3
enum.c: Add support for regular expression flag in NAPTR record

A regular expression in a NAPTR response record can have a trailing
'i' flag to indicate that the expression should be evaluated in a
case-insensitive way. We were not checking for that flag which caused
the record parsing to fail on otherwise valid input.

Although this change will initially go into Asterisk 13, 16, and 17,
it is my intention to replace the majority of this code in 16 and up -
including this fix - by changing enum.c to consume the new DNS API
which duplicates most of this logic already. Asterisk 13 doesn't have
the DNS API, so this fix will be as good as it gets.

ASTERISK-26711 #close
Reported by: Vitold

Change-Id: I33943a5b3e7539c6dca3a5079982ee15a08186f0
main/enum.c