diff options
author | Bryan Steele <brynet@cvs.openbsd.org> | 2019-07-25 17:32:34 +0000 |
---|---|---|
committer | Bryan Steele <brynet@cvs.openbsd.org> | 2019-07-25 17:32:34 +0000 |
commit | ee0a77c6d7ef45be799cb7057f13ef77ea56d1fc (patch) | |
tree | ab067f322f1f3318b87ec3cf855b89343dace328 /sbin/pflogd | |
parent | 75975ef5ba7b52a35c21ae272016bdbd7c5284b9 (diff) |
Fix copy pasto, re-add missing goto in error path.
Diffstat (limited to 'sbin/pflogd')
-rw-r--r-- | sbin/pflogd/pflogd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/pflogd/pflogd.c b/sbin/pflogd/pflogd.c index 377fc9f7965..2f53ef39018 100644 --- a/sbin/pflogd/pflogd.c +++ b/sbin/pflogd/pflogd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pflogd.c,v 1.61 2019/07/25 14:53:21 brynet Exp $ */ +/* $OpenBSD: pflogd.c,v 1.62 2019/07/25 17:32:33 brynet Exp $ */ /* * Copyright (c) 2001 Theo de Raadt @@ -254,6 +254,7 @@ pflog_read_live(const char *source, int slen, int promisc, int to_ms, if (ioctl(p->fd, BIOCSRTIMEOUT, &to) == -1) { snprintf(ebuf, PCAP_ERRBUF_SIZE, "BIOCSRTIMEOUT: %s", pcap_strerror(errno)); + goto bad; } } if (promisc) |