summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rebound/rebound.c
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2015-10-15 21:39:15 +0000
committertedu <tedu@openbsd.org>2015-10-15 21:39:15 +0000
commit04a899a475d865767168f53aeefdb1c79294202f (patch)
treeb6d6ba60bf49521ebd20f825cf7b85bd1fa19d2d /usr.sbin/rebound/rebound.c
parentthe inet sockets don't work well with inet6 addrs. pick family from addr. (diff)
downloadwireguard-openbsd-04a899a475d865767168f53aeefdb1c79294202f.tar.xz
wireguard-openbsd-04a899a475d865767168f53aeefdb1c79294202f.zip
assert is the wrong tool
Diffstat (limited to '')
-rw-r--r--usr.sbin/rebound/rebound.c7
1 files 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 <tedu@openbsd.org>
*
@@ -31,7 +31,6 @@
#include <string.h>
#include <err.h>
#include <unistd.h>
-#include <assert.h>
#include <pwd.h>
#include <errno.h>
#include <getopt.h>
@@ -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);