network.subr: correct return code in case of bad call to ifisup()

This is rather cosmetic correction.

PR:		287872
MFC-after:	2 weeks
X-MFC-With:	6d3bc576ab
This commit is contained in:
Eugene Grosbein 2025-07-01 21:33:19 +07:00
parent 6d3bc576ab
commit 24e8ed535f

View file

@ -661,7 +661,7 @@ ifisup()
{
local _if
[ -z "$1" ] && return 1
[ -z "$1" ] && return 2
_if="$1"
set -- $(${IFCONFIG_CMD} -n ${_if} 2>/dev/null)