diff options
author | Damien Miller <djm@mindrot.org> | 2006-03-25 14:06:48 +0100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2006-03-25 14:06:48 +0100 |
commit | 5996294a954e3013ade0719f3c0c7389d3d333f7 (patch) | |
tree | dd6a35f91940cb2774d1d6d90d227131eb9350bf /dns.c | |
parent | - deraadt@cvs.openbsd.org 2006/03/20 18:26:55 (diff) | |
download | openssh-5996294a954e3013ade0719f3c0c7389d3d333f7.tar.xz openssh-5996294a954e3013ade0719f3c0c7389d3d333f7.zip |
- 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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |