]> 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 20:59:37 +0000 (15:59 -0500)
commit58b8c24c40ed92d51d66b9634847e8287fed9000
treeddd7053d207ec209275a99e92d2afa842926cccd
parent077cc24d6610425aeb12bbe1fb2fdffb1c345088
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