diff options
Diffstat (limited to 'src/lib/libc/net/res_comp.c')
-rw-r--r-- | src/lib/libc/net/res_comp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/libc/net/res_comp.c b/src/lib/libc/net/res_comp.c index f6f987eb0e..c493d9b20d 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.17 2015/09/13 21:36:08 guenther Exp $ */ | 1 | /* $OpenBSD: res_comp.c,v 1.18 2015/10/05 02:57:16 guenther Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * ++Copyright++ 1985, 1993 | 4 | * ++Copyright++ 1985, 1993 |
@@ -141,6 +141,7 @@ dn_expand(const u_char *msg, const u_char *eomorig, const u_char *comp_dn, | |||
141 | len = cp - comp_dn; | 141 | len = cp - comp_dn; |
142 | return (len); | 142 | return (len); |
143 | } | 143 | } |
144 | DEF_WEAK(dn_expand); | ||
144 | 145 | ||
145 | /* | 146 | /* |
146 | * Compress domain name 'exp_dn' into 'comp_dn'. | 147 | * Compress domain name 'exp_dn' into 'comp_dn'. |
@@ -344,7 +345,7 @@ dn_find(u_char *exp_dn, u_char *msg, u_char **dnptrs, u_char **lastdnptr) | |||
344 | #define domainchar(c) ((c) > 0x20 && (c) < 0x7f) | 345 | #define domainchar(c) ((c) > 0x20 && (c) < 0x7f) |
345 | 346 | ||
346 | int | 347 | int |
347 | res_hnok(const char *dn) | 348 | __res_hnok(const char *dn) |
348 | { | 349 | { |
349 | int pch = PERIOD, ch = *dn++; | 350 | int pch = PERIOD, ch = *dn++; |
350 | 351 | ||
@@ -367,6 +368,7 @@ res_hnok(const char *dn) | |||
367 | } | 368 | } |
368 | return (1); | 369 | return (1); |
369 | } | 370 | } |
371 | DEF_STRONG(__res_hnok); | ||
370 | 372 | ||
371 | /* | 373 | /* |
372 | * hostname-like (A, MX, WKS) owners can have "*" as their first label | 374 | * hostname-like (A, MX, WKS) owners can have "*" as their first label |