HomeFreeBSD

network.subr: Fix infinite loop

Description

network.subr: Fix infinite loop

When setting up carp tunnel, using a password consisting of only the
characters used as hexadecimal characters, i.e. abc-def, there will be
an infinite loop in the shell function ifalias_af_common_handler().
To circumvent this we test for " pass ".

PR: 268378
Reported by: jyoung15@gmail.com
Differential Revision: https://reviews.freebsd.org/D37748

(cherry picked from commit e3e57edf4aac05d041ca55ff2f008c6109ef88d5)

Details

Provenance
cyAuthored on Dec 14 2022, 9:41 PM
Differential Revision
D37748: network.subr: Fix infinite loop
Parents
rG3f89a2974875: network.subr: Replace "\ " with "[[:space:]]"
Branches
Unknown
Tags
Unknown