summaryrefslogtreecommitdiff
path: root/msg.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 /msg.c
parentcb30cd47041edb03476be1c8ef7bc1f4b69d1555 (diff)
upstream: replace cast with call to sshbuf_mutable_ptr(); ok djm@
OpenBSD-Commit-ID: 4dfe9d29fa93d9231645c89084f7217304f7ba29
Diffstat (limited to 'msg.c')
-rw-r--r--msg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/msg.c b/msg.c
index 5a7b8ca91..1bd20f3d3 100644
--- a/msg.c
+++ b/msg.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: msg.c,v 1.16 2015/01/15 09:40:00 djm Exp $ */ 1/* $OpenBSD: msg.c,v 1.17 2018/07/09 21:59:10 markus Exp $ */
2/* 2/*
3 * Copyright (c) 2002 Markus Friedl. All rights reserved. 3 * Copyright (c) 2002 Markus Friedl. All rights reserved.
4 * 4 *
@@ -55,7 +55,7 @@ ssh_msg_send(int fd, u_char type, struct sshbuf *m)
55 error("ssh_msg_send: write"); 55 error("ssh_msg_send: write");
56 return (-1); 56 return (-1);
57 } 57 }
58 if (atomicio(vwrite, fd, (u_char *)sshbuf_ptr(m), mlen) != mlen) { 58 if (atomicio(vwrite, fd, sshbuf_mutable_ptr(m), mlen) != mlen) {
59 error("ssh_msg_send: write"); 59 error("ssh_msg_send: write");
60 return (-1); 60 return (-1);
61 } 61 }