diff options
author | 2015-10-15 21:39:15 +0000 | |
---|---|---|
committer | 2015-10-15 21:39:15 +0000 | |
commit | 04a899a475d865767168f53aeefdb1c79294202f (patch) | |
tree | b6d6ba60bf49521ebd20f825cf7b85bd1fa19d2d /usr.sbin/rebound/rebound.c | |
parent | the inet sockets don't work well with inet6 addrs. pick family from addr. (diff) | |
download | wireguard-openbsd-04a899a475d865767168f53aeefdb1c79294202f.tar.xz wireguard-openbsd-04a899a475d865767168f53aeefdb1c79294202f.zip |
assert is the wrong tool
Diffstat (limited to '')
-rw-r--r-- | usr.sbin/rebound/rebound.c | 7 |
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); |