summaryrefslogtreecommitdiff
path: root/ssh-pkcs11-client.c
diff options
context:
space:
mode:
authormarkus@openbsd.org <markus@openbsd.org>2018-07-09 21:59:10 +0000
committerDamien Miller <djm@mindrot.org>2018-07-10 16:44:17 +1000
commit49f47e656b60bcd1d1db98d88105295f4b4e600d (patch)
tree95ace6a7ae985233385ba2799b82a4672238f9aa /ssh-pkcs11-client.c
parentcb30cd47041edb03476be1c8ef7bc1f4b69d1555 (diff)
downloadopenssh-git-49f47e656b60bcd1d1db98d88105295f4b4e600d.tar.gz
upstream: replace cast with call to sshbuf_mutable_ptr(); ok djm@
OpenBSD-Commit-ID: 4dfe9d29fa93d9231645c89084f7217304f7ba29
Diffstat (limited to 'ssh-pkcs11-client.c')
-rw-r--r--ssh-pkcs11-client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ssh-pkcs11-client.c b/ssh-pkcs11-client.c
index 0544b0e8..028b272c 100644
--- a/ssh-pkcs11-client.c
+++ b/ssh-pkcs11-client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-pkcs11-client.c,v 1.9 2018/07/09 20:39:28 markus Exp $ */
+/* $OpenBSD: ssh-pkcs11-client.c,v 1.10 2018/07/09 21:59:10 markus Exp $ */
/*
* Copyright (c) 2010 Markus Friedl. All rights reserved.
*
@@ -57,7 +57,7 @@ send_msg(struct sshbuf *m)
POKE_U32(buf, mlen);
if (atomicio(vwrite, fd, buf, 4) != 4 ||
- atomicio(vwrite, fd, (u_char *)sshbuf_ptr(m),
+ atomicio(vwrite, fd, sshbuf_mutable_ptr(m),
sshbuf_len(m)) != sshbuf_len(m))
error("write to helper failed");
if ((r = sshbuf_consume(m, mlen)) != 0)