summaryrefslogtreecommitdiffstats
path: root/dns.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2006-03-26 00:06:48 +1100
committerDamien Miller <djm@mindrot.org>2006-03-26 00:06:48 +1100
commit5996294a954e3013ade0719f3c0c7389d3d333f7 (patch)
treedd6a35f91940cb2774d1d6d90d227131eb9350bf /dns.c
parent1345e617da1cdf8c62db7c372e2cd5762cb31f7f (diff)
- deraadt@cvs.openbsd.org 2006/03/20 18:41:43
[dns.c] cast xstrdup to propert u_char *
Diffstat (limited to 'dns.c')
-rw-r--r--dns.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dns.c b/dns.c
index e9270798..83d4d895 100644
--- a/dns.c
+++ b/dns.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dns.c,v 1.17 2006/03/19 18:51:18 deraadt Exp $ */
+/* $OpenBSD: dns.c,v 1.18 2006/03/20 18:41:43 deraadt Exp $ */
/*
* Copyright (c) 2003 Wesley Griffin. All rights reserved.
@@ -121,7 +121,7 @@ dns_read_rdata(u_int8_t *algorithm, u_int8_t *digest_type,
*digest = (u_char *) xmalloc(*digest_len);
memcpy(*digest, rdata + 2, *digest_len);
} else {
- *digest = xstrdup("");
+ *digest = (u_char *)xstrdup("");
}
success = 1;