summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2006-03-20 18:41:44 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2006-03-20 18:41:44 +0000
commit695c052a02f9ec727b32f4cd2bae69c579b87e2f (patch)
tree2d0d9ff5adaff8d261dc383d99f95fb80220bd29
parent6a6c661f8b97442a38f44ea3c14bcfa75a011679 (diff)
cast xstrdup to propert u_char *
-rw-r--r--usr.bin/ssh/dns.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/dns.c b/usr.bin/ssh/dns.c
index e9270798d12..83d4d895a7c 100644
--- a/usr.bin/ssh/dns.c
+++ b/usr.bin/ssh/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;