# HG changeset patch # User Roy Marples # Date 1607794897 0 # Node ID 3853222e97c748aee49645d319a37f5fd73450fa # Parent ecfe552000c0eadd4d2b2e138f4dd1f23118c81b DHCP6: Fix a LGTM issue diff -r ecfe552000c0 -r 3853222e97c7 src/dhcp6.c --- a/src/dhcp6.c Sat Dec 12 17:35:45 2020 +0000 +++ b/src/dhcp6.c Sat Dec 12 17:41:37 2020 +0000 @@ -2065,7 +2065,8 @@ state->lerror = code; errno = 0; - if (code != 0 && ifp->ctx->options & DHCPCD_TEST) + /* code cannot be D6_STATUS_OK, so there is a failure */ + if (ifp->ctx->options & DHCPCD_TEST) eloop_exit(ifp->ctx->eloop, EXIT_FAILURE); return (int)code;