diff options
| author | Roy Marples <roy@marples.name> | 2020-12-12 17:41:37 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2020-12-12 17:41:37 +0000 |
| commit | 544191a525971480d1e2a2cf403e61cf2aab27bf (patch) | |
| tree | 7631798d6bafe51a3bda71faeb8d5acdb10ed147 | |
| parent | 7a85694c6cad5cde8adfad70a712952b14a90b96 (diff) | |
| download | dhcpcd-544191a525971480d1e2a2cf403e61cf2aab27bf.tar.xz | |
DHCP6: Fix a LGTM issue
| -rw-r--r-- | src/dhcp6.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dhcp6.c b/src/dhcp6.c index 4dcdcaab..176a12e4 100644 --- a/src/dhcp6.c +++ b/src/dhcp6.c @@ -2065,7 +2065,8 @@ dhcp6_checkstatusok(const struct interface *ifp, 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; |
