diff options
author | deraadt <> | 2015-01-16 16:48:51 +0000 |
---|---|---|
committer | deraadt <> | 2015-01-16 16:48:51 +0000 |
commit | 1e4765ffa2cc484d6fa2c51e54ba927cbae67f13 (patch) | |
tree | 2f04e8a0f019b4b73805acf11a1e5138c9b9f37f /src/lib/libc/net/res_comp.c | |
parent | d23934efb8e7adaa63d4eb5752505a40e4b1f285 (diff) | |
download | openbsd-1e4765ffa2cc484d6fa2c51e54ba927cbae67f13.tar.gz openbsd-1e4765ffa2cc484d6fa2c51e54ba927cbae67f13.tar.bz2 openbsd-1e4765ffa2cc484d6fa2c51e54ba927cbae67f13.zip |
Move to the <limits.h> universe.
review by millert, binary checking process with doug, concept with guenther
Diffstat (limited to 'src/lib/libc/net/res_comp.c')
-rw-r--r-- | src/lib/libc/net/res_comp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libc/net/res_comp.c b/src/lib/libc/net/res_comp.c index 69a6ce0abb..37c8f23dc2 100644 --- a/src/lib/libc/net/res_comp.c +++ b/src/lib/libc/net/res_comp.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: res_comp.c,v 1.14 2008/04/16 22:35:23 deraadt Exp $ */ | 1 | /* $OpenBSD: res_comp.c,v 1.15 2015/01/16 16:48:51 deraadt Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * ++Copyright++ 1985, 1993 | 4 | * ++Copyright++ 1985, 1993 |
@@ -52,7 +52,6 @@ | |||
52 | */ | 52 | */ |
53 | 53 | ||
54 | #include <sys/types.h> | 54 | #include <sys/types.h> |
55 | #include <sys/param.h> | ||
56 | #include <netinet/in.h> | 55 | #include <netinet/in.h> |
57 | #include <arpa/nameser.h> | 56 | #include <arpa/nameser.h> |
58 | 57 | ||
@@ -61,6 +60,7 @@ | |||
61 | #include <ctype.h> | 60 | #include <ctype.h> |
62 | 61 | ||
63 | #include <unistd.h> | 62 | #include <unistd.h> |
63 | #include <limits.h> | ||
64 | #include <string.h> | 64 | #include <string.h> |
65 | 65 | ||
66 | static int dn_find(u_char *, u_char *, u_char **, u_char **); | 66 | static int dn_find(u_char *, u_char *, u_char **, u_char **); |
@@ -84,8 +84,8 @@ dn_expand(const u_char *msg, const u_char *eomorig, const u_char *comp_dn, | |||
84 | 84 | ||
85 | dn = exp_dn; | 85 | dn = exp_dn; |
86 | cp = comp_dn; | 86 | cp = comp_dn; |
87 | if (length > MAXHOSTNAMELEN-1) | 87 | if (length > HOST_NAME_MAX+1-1) |
88 | length = MAXHOSTNAMELEN-1; | 88 | length = HOST_NAME_MAX+1-1; |
89 | eom = exp_dn + length; | 89 | eom = exp_dn + length; |
90 | /* | 90 | /* |
91 | * fetch next label in domain name | 91 | * fetch next label in domain name |