summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/res_comp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libc/net/res_comp.c')
-rw-r--r--src/lib/libc/net/res_comp.c8
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
66static int dn_find(u_char *, u_char *, u_char **, u_char **); 66static 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