summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2019-04-16 09:32:06 +0000
committerdlg <dlg@openbsd.org>2019-04-16 09:32:06 +0000
commit9262558ca9b0c6381d2c1bbcf47678d782eb42c7 (patch)
treee2c22165e7ed1974f8ea1354792fa7a326df7375
parentRewrite using libelf(3). (diff)
downloadwireguard-openbsd-9262558ca9b0c6381d2c1bbcf47678d782eb42c7.tar.xz
wireguard-openbsd-9262558ca9b0c6381d2c1bbcf47678d782eb42c7.zip
restore some missing error handling
-rw-r--r--sbin/ifconfig/sff.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/ifconfig/sff.c b/sbin/ifconfig/sff.c
index 1975697413c..33725d26f45 100644
--- a/sbin/ifconfig/sff.c
+++ b/sbin/ifconfig/sff.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sff.c,v 1.10 2019/04/15 03:41:58 dlg Exp $ */
+/* $OpenBSD: sff.c,v 1.11 2019/04/16 09:32:06 dlg Exp $ */
/*
* Copyright (c) 2019 David Gwynne <dlg@openbsd.org>
@@ -325,7 +325,8 @@ if_sff_info(int s, const char *ifname, int dump)
if_sffpage_init(&pg0, ifname, IFSFF_ADDR_EEPROM, 1);
if (ioctl(s, SIOCGIFSFFPAGE, (caddr_t)&pg0) == -1)
return (-1);
- }
+ } else
+ return (-1);
}
if (dump)