diff options
-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 2e98003b85..bcc7d16c4d 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.4 1997/03/13 19:07:35 downsj Exp $ */ | 1 | /* $OpenBSD: res_comp.c,v 1.5 1997/03/27 20:45:33 deraadt Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * ++Copyright++ 1985, 1993 | 4 | * ++Copyright++ 1985, 1993 |
@@ -60,7 +60,7 @@ | |||
60 | static char sccsid[] = "@(#)res_comp.c 8.1 (Berkeley) 6/4/93"; | 60 | static char sccsid[] = "@(#)res_comp.c 8.1 (Berkeley) 6/4/93"; |
61 | static char rcsid[] = "$From: res_comp.c,v 8.11 1996/12/02 09:17:22 vixie Exp $"; | 61 | static char rcsid[] = "$From: res_comp.c,v 8.11 1996/12/02 09:17:22 vixie Exp $"; |
62 | #else | 62 | #else |
63 | static char rcsid[] = "$OpenBSD: res_comp.c,v 1.4 1997/03/13 19:07:35 downsj Exp $"; | 63 | static char rcsid[] = "$OpenBSD: res_comp.c,v 1.5 1997/03/27 20:45:33 deraadt Exp $"; |
64 | #endif | 64 | #endif |
65 | #endif /* LIBC_SCCS and not lint */ | 65 | #endif /* LIBC_SCCS and not lint */ |
66 | 66 | ||
@@ -100,7 +100,7 @@ dn_expand(msg, eomorig, comp_dn, exp_dn, length) | |||
100 | 100 | ||
101 | dn = exp_dn; | 101 | dn = exp_dn; |
102 | cp = comp_dn; | 102 | cp = comp_dn; |
103 | eom = exp_dn + length; | 103 | eom = exp_dn + (length > MAXDNAME ? MAXDNAME : length); |
104 | /* | 104 | /* |
105 | * fetch next label in domain name | 105 | * fetch next label in domain name |
106 | */ | 106 | */ |
@@ -372,7 +372,7 @@ res_hnok(dn) | |||
372 | int nch = *dn++; | 372 | int nch = *dn++; |
373 | 373 | ||
374 | if (periodchar(ch)) { | 374 | if (periodchar(ch)) { |
375 | NULL; | 375 | ; |
376 | } else if (periodchar(pch)) { | 376 | } else if (periodchar(pch)) { |
377 | if (!borderchar(ch)) | 377 | if (!borderchar(ch)) |
378 | return (0); | 378 | return (0); |