summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2021-01-28 17:26:08 +0000
committerRoy Marples <roy@marples.name>2021-01-28 17:26:08 +0000
commit07af15970a386e49db4b4e5c443e702fbca2f275 (patch)
treeef6eff1a79e125d0fea2a2719141d42dd52ed28b
parent55c9cda13bd94fac444a42c449f22f3d8c42ae27 (diff)
downloaddhcpcd-07af15970a386e49db4b4e5c443e702fbca2f275.tar.xz
control: Don't log the write db didn't exist when freeing it.
-rw-r--r--src/control.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/control.c b/src/control.c
index 794d4a12..97bed1ae 100644
--- a/src/control.c
+++ b/src/control.c
@@ -84,7 +84,8 @@ control_free(struct fd_list *fd)
fd->ctx->ps_control_client = NULL;
#endif
- if (eloop_event_remove_writecb(fd->ctx->eloop, fd->fd) == -1)
+ if (eloop_event_remove_writecb(fd->ctx->eloop, fd->fd) == -1 &&
+ errno != ENOENT)
logerr(__func__);
TAILQ_REMOVE(&fd->ctx->control_fds, fd, next);
control_queue_free(fd);