diff --git a/core/unix/linux/dap_network_monitor.c b/core/unix/linux/dap_network_monitor.c
index 605360a84d2d8eadf9c9104e69a4e3df212ec814..40c31a82e26e5d8120b6c3f40eae4af8e59bf4a3 100644
--- a/core/unix/linux/dap_network_monitor.c
+++ b/core/unix/linux/dap_network_monitor.c
@@ -30,10 +30,11 @@ static bool _send_NLM_F_ACK_msg(int fd)
     ssize_t rc = sendmsg(fd, &msg, 0);
     if (rc == -1) {
           log_it(L_ERROR, "sendmsg failed");
-          return -1;
+          return false;
     }
 
     DAP_DELETE(nh);
+    return true;
 }
 
 static struct {