]> git.ozlabs.org Git - ppp.git/commit
pppd: Fix auth_number() to handle wildcards correctly
authorPaul Mackerras <paulus@ozlabs.org>
Sat, 17 Aug 2024 10:43:25 +0000 (20:43 +1000)
committerPaul Mackerras <paulus@ozlabs.org>
Sat, 17 Aug 2024 10:43:25 +0000 (20:43 +1000)
commit9b222dbe0e0231ff659c0171594ecead664652a7
tree18d4d073ad5f12395db8c51704b571c27e80fabe
parentfa612cba719c2c44ebb196a14aaaf6f4497fce03
pppd: Fix auth_number() to handle wildcards correctly

Previously auth_number treated all entries in the permitted_numbers
list as if they were wildcards, i.e., as ending in '*', even if there
was no '*'.  This fixes it to only treat entries ending in '*' as
wildcards; without the '*', remote_number has to match the whole entry
exactly.

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
pppd/auth.c