dhcpcd: Don't open a control socket in test mode
Fixes PR bin/55170
This commit is contained in:
parent
134268cc06
commit
09220fdb89
3
external/bsd/dhcpcd/dist/src/dhcpcd.c
vendored
3
external/bsd/dhcpcd/dist/src/dhcpcd.c
vendored
@ -2207,7 +2207,8 @@ printpidfile:
|
||||
goto run_loop;
|
||||
#endif
|
||||
|
||||
if (control_start(&ctx,
|
||||
if (!(ctx.options & DHCPCD_TEST) &&
|
||||
control_start(&ctx,
|
||||
ctx.options & DHCPCD_MASTER ? NULL : argv[optind]) == -1)
|
||||
{
|
||||
logerr("%s: control_start", __func__);
|
||||
|
Loading…
Reference in New Issue
Block a user