summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/res_comp.c
diff options
context:
space:
mode:
authormillert <>2015-01-16 18:18:58 +0000
committermillert <>2015-01-16 18:18:58 +0000
commitf25909092c57fac1cb1e168753bbee3299bf1a18 (patch)
tree298484883d9df4d46a50be624e91cdbe9710e74b /src/lib/libc/net/res_comp.c
parent63f844dfac6cf32d317ce7664d4c5928e3ec7f4e (diff)
downloadopenbsd-f25909092c57fac1cb1e168753bbee3299bf1a18.tar.gz
openbsd-f25909092c57fac1cb1e168753bbee3299bf1a18.tar.bz2
openbsd-f25909092c57fac1cb1e168753bbee3299bf1a18.zip
Replace HOST_NAME_MAX+1-1 with HOST_NAME_MAX. OK deraad@
Diffstat (limited to 'src/lib/libc/net/res_comp.c')
-rw-r--r--src/lib/libc/net/res_comp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libc/net/res_comp.c b/src/lib/libc/net/res_comp.c
index 37c8f23dc2..a1467c3dbb 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.15 2015/01/16 16:48:51 deraadt Exp $ */ 1/* $OpenBSD: res_comp.c,v 1.16 2015/01/16 18:18:58 millert Exp $ */
2 2
3/* 3/*
4 * ++Copyright++ 1985, 1993 4 * ++Copyright++ 1985, 1993
@@ -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 > HOST_NAME_MAX+1-1) 87 if (length > HOST_NAME_MAX)
88 length = HOST_NAME_MAX+1-1; 88 length = HOST_NAME_MAX;
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