diff options
author | florian <florian@openbsd.org> | 2018-10-15 11:29:27 +0000 |
---|---|---|
committer | florian <florian@openbsd.org> | 2018-10-15 11:29:27 +0000 |
commit | 18d15a648cfcd17244e6029fdb21fe9f7808aecf (patch) | |
tree | cda6a2b81469bcc26156af0cfc87856a92db03ec /usr.sbin/inetd | |
parent | struct sockaddr_storage is guaranteed to be large enough, no need to check (diff) | |
download | wireguard-openbsd-18d15a648cfcd17244e6029fdb21fe9f7808aecf.tar.xz wireguard-openbsd-18d15a648cfcd17244e6029fdb21fe9f7808aecf.zip |
struct sockaddr_storage is guaranteed to be large enough, no need to check
the size.
OK kn, deraadt
Diffstat (limited to 'usr.sbin/inetd')
-rw-r--r-- | usr.sbin/inetd/inetd.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.sbin/inetd/inetd.c b/usr.sbin/inetd/inetd.c index fce5fa658d7..a5372aaae12 100644 --- a/usr.sbin/inetd/inetd.c +++ b/usr.sbin/inetd/inetd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: inetd.c,v 1.159 2018/04/26 12:42:51 guenther Exp $ */ +/* $OpenBSD: inetd.c,v 1.160 2018/10/15 11:29:27 florian Exp $ */ /* * Copyright (c) 1983,1991 The Regents of the University of California. @@ -1248,9 +1248,6 @@ more: continue; } for (res = res0; res; res = res->ai_next) { - if (res->ai_addrlen > - sizeof(sep->se_ctrladdr_storage)) - continue; /* * If sep is unused, store host in there. * Otherwise, dup a new entry and prepend it. |