summaryrefslogtreecommitdiff
path: root/sshkey-xmss.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 /sshkey-xmss.c
parentcb30cd47041edb03476be1c8ef7bc1f4b69d1555 (diff)
upstream: replace cast with call to sshbuf_mutable_ptr(); ok djm@
OpenBSD-Commit-ID: 4dfe9d29fa93d9231645c89084f7217304f7ba29
Diffstat (limited to 'sshkey-xmss.c')
-rw-r--r--sshkey-xmss.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sshkey-xmss.c b/sshkey-xmss.c
index 2c50f75f8..aaae70289 100644
--- a/sshkey-xmss.c
+++ b/sshkey-xmss.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sshkey-xmss.c,v 1.2 2018/04/10 00:10:49 djm Exp $ */ 1/* $OpenBSD: sshkey-xmss.c,v 1.3 2018/07/09 21:59:10 markus Exp $ */
2/* 2/*
3 * Copyright (c) 2017 Markus Friedl. All rights reserved. 3 * Copyright (c) 2017 Markus Friedl. All rights reserved.
4 * 4 *
@@ -625,7 +625,7 @@ sshkey_xmss_update_state(const struct sshkey *k, sshkey_printfn *pr)
625 close(fd); 625 close(fd);
626 goto done; 626 goto done;
627 } 627 }
628 if (atomicio(vwrite, fd, (void *)sshbuf_ptr(enc), sshbuf_len(enc)) != 628 if (atomicio(vwrite, fd, sshbuf_mutable_ptr(enc), sshbuf_len(enc)) !=
629 sshbuf_len(enc)) { 629 sshbuf_len(enc)) {
630 ret = SSH_ERR_SYSTEM_ERROR; 630 ret = SSH_ERR_SYSTEM_ERROR;
631 PRINT("%s: write new state file data: %s", __func__, nstatefile); 631 PRINT("%s: write new state file data: %s", __func__, nstatefile);