diff options
| author | 2014-08-13 01:00:16 +0000 | |
|---|---|---|
| committer | 2014-08-13 01:00:16 +0000 | |
| commit | bca13417c816aea1ab18f9563e65bb5fa908ba49 (patch) | |
| tree | 53022808a7683c04a2eb4e70e2736c6b45295557 /usr.sbin/tftpd/tftpd.c | |
| parent | Merge a patch that i successfully pushed to OpenSSL, (diff) | |
| download | wireguard-openbsd-bca13417c816aea1ab18f9563e65bb5fa908ba49.tar.xz wireguard-openbsd-bca13417c816aea1ab18f9563e65bb5fa908ba49.zip | |
setsockopt sets errno on failure, so we can use err instead of errx when
handling the error.
Diffstat (limited to 'usr.sbin/tftpd/tftpd.c')
| -rw-r--r-- | usr.sbin/tftpd/tftpd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/tftpd/tftpd.c b/usr.sbin/tftpd/tftpd.c index e08efc50363..49c7b363433 100644 --- a/usr.sbin/tftpd/tftpd.c +++ b/usr.sbin/tftpd/tftpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tftpd.c,v 1.19 2014/04/21 04:02:52 dlg Exp $ */ +/* $OpenBSD: tftpd.c,v 1.20 2014/08/13 01:00:16 dlg Exp $ */ /* * Copyright (c) 2012 David Gwynne <dlg@uq.edu.au> @@ -530,12 +530,12 @@ tftpd_listen(const char *addr, const char *port, int family) case AF_INET: if (setsockopt(s, IPPROTO_IP, IP_RECVDSTADDR, &on, sizeof(on)) == -1) - errx(1, "setsockopt(IP_RECVDSTADDR)"); + err(1, "setsockopt(IP_RECVDSTADDR)"); break; case AF_INET6: if (setsockopt(s, IPPROTO_IPV6, IPV6_RECVPKTINFO, &on, sizeof(on)) == -1) - errx(1, "setsockopt(IPV6_RECVPKTINFO)"); + err(1, "setsockopt(IPV6_RECVPKTINFO)"); break; } |
