From 04a899a475d865767168f53aeefdb1c79294202f Mon Sep 17 00:00:00 2001 From: tedu Date: Thu, 15 Oct 2015 21:39:15 +0000 Subject: [PATCH] assert is the wrong tool --- usr.sbin/rebound/rebound.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/usr.sbin/rebound/rebound.c b/usr.sbin/rebound/rebound.c index 87146d23aa7..f5ba84717a5 100644 --- a/usr.sbin/rebound/rebound.c +++ b/usr.sbin/rebound/rebound.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rebound.c,v 1.8 2015/10/15 21:35:27 tedu Exp $ */ +/* $OpenBSD: rebound.c,v 1.9 2015/10/15 21:39:15 tedu Exp $ */ /* * Copyright (c) 2015 Ted Unangst * @@ -31,7 +31,6 @@ #include #include #include -#include #include #include #include @@ -397,7 +396,9 @@ launch(const char *confname, int ud, int ld, int kq) break; req = TAILQ_NEXT(req, fifo); } - assert(req); + if (!req) + logerr(LOG_DAEMON | LOG_ERR, + "lost request"); if (req->client == -1) sendreply(ud, req); freerequest(req); -- 2.20.1