]> 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:25 +0000 (15:06 -0600)
commitacaf24e23cf383085afbca403d03aa7bdecfe816
tree63b6d0457006c35782600550b416b39aa5c598d0
parent1522c4467c7696147c80c2a7adf4f4f19998e6c4
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