summaryrefslogtreecommitdiff
path: root/dns.c
diff options
context:
space:
mode:
authordjm <djm>2006-03-25 13:06:48 +0000
committerdjm <djm>2006-03-25 13:06:48 +0000
commit58d358db28b5a56de57b5db757e3a5561d649df9 (patch)
tree70eaa1e7ec0a89f87db0cae815c61ea68cb17168 /dns.c
parentf95c7ebc441c994ef1d44551b09e69f0543ec135 (diff)
downloadopenssh-58d358db28b5a56de57b5db757e3a5561d649df9.tar.gz
- 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;