diff options
author | 2015-05-14 11:52:43 +0000 | |
---|---|---|
committer | 2015-05-14 11:52:43 +0000 | |
commit | a3f3006bfc8c1d582b1ef01f3aec7040c60eda6c (patch) | |
tree | 197eb545e7f3eec3db65952770aafb80ac0c9995 /lib/libc | |
parent | Extend autoinstall(8) to allow for <hostname>-<mode>.conf response files (diff) | |
download | wireguard-openbsd-a3f3006bfc8c1d582b1ef01f3aec7040c60eda6c.tar.xz wireguard-openbsd-a3f3006bfc8c1d582b1ef01f3aec7040c60eda6c.zip |
rev 1.3 introduced a check to an if statement without adding braces.
Claudio points out the size is checked by an earlier test so just
remove it to restore the original handling of the partial octet case.
Discussed with claudio and gilles.
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/net/inet_net_ntop.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/libc/net/inet_net_ntop.c b/lib/libc/net/inet_net_ntop.c index 35ae7909d3c..652b24076e6 100644 --- a/lib/libc/net/inet_net_ntop.c +++ b/lib/libc/net/inet_net_ntop.c @@ -1,4 +1,4 @@ -/* $OpenBSD: inet_net_ntop.c,v 1.7 2012/06/22 19:13:37 gilles Exp $ */ +/* $OpenBSD: inet_net_ntop.c,v 1.8 2015/05/14 11:52:43 jsg Exp $ */ /* * Copyright (c) 2012 by Gilles Chehade <gilles@openbsd.org> @@ -114,8 +114,6 @@ inet_net_ntop_ipv4(const u_char *src, int bits, char *dst, size_t size) if (ep - dst < sizeof ".255") goto emsgsize; if (dst != odst) - if (dst + 1 >= ep) - goto emsgsize; *dst++ = '.'; m = ((1 << b) - 1) << (8 - b); advance = snprintf(dst, ep - dst, "%u", *src & m); |