diff options
author | hrs <hrs@FreeBSD.org> | 2014-05-16 18:44:23 +0000 |
---|---|---|
committer | hrs <hrs@FreeBSD.org> | 2014-05-16 18:44:23 +0000 |
commit | c8cbe4ade050d9ee75196f8b19a0bfdd5381c9b5 (patch) | |
tree | fc481cda612698498887579018037f72ce8774ab /etc/network.subr | |
parent | db4e2031987380ed6d8de861a189acd65da4142c (diff) | |
download | FreeBSD-src-c8cbe4ade050d9ee75196f8b19a0bfdd5381c9b5.zip FreeBSD-src-c8cbe4ade050d9ee75196f8b19a0bfdd5381c9b5.tar.gz |
Fix an issue in range specification handling when a "-foo" is specified in
ifconfig_IF_aliasN.
Diffstat (limited to 'etc/network.subr')
-rw-r--r-- | etc/network.subr | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/network.subr b/etc/network.subr index 5c918cc..abbafa9 100644 --- a/etc/network.subr +++ b/etc/network.subr @@ -1040,7 +1040,7 @@ ifalias_af_common_handler() case $_c in ${_af}) case $_tmpargs in - ${_af}\ *-*) + ${_af}\ *[0-9a-fA-F]-*) ifalias_af_common_handler $_if $_af $_action \ `ifalias_expand_addr $_af $_action ${_tmpargs#${_af}\ }` ;; @@ -1058,7 +1058,7 @@ ifalias_af_common_handler() # Process the last component if any. if [ -n "$_tmpargs}" ]; then case $_tmpargs in - ${_af}\ *-*) + ${_af}\ *[0-9][a-f][A-F]-*) ifalias_af_common_handler $_if $_af $_action \ `ifalias_expand_addr $_af $_action ${_tmpargs#${_af}\ }` ;; |