summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/msg.c
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>2018-07-09 21:59:10 +0000
committermarkus <markus@openbsd.org>2018-07-09 21:59:10 +0000
commit25fe41fae02f5ea2d00c9aa371f7276e7bed6db1 (patch)
tree0cb47d47a6434709ee9bfacca7743da13b783e0e /usr.bin/ssh/msg.c
parentremove legacy buffer API emulation layer; ok djm@ (diff)
downloadwireguard-openbsd-25fe41fae02f5ea2d00c9aa371f7276e7bed6db1.tar.xz
wireguard-openbsd-25fe41fae02f5ea2d00c9aa371f7276e7bed6db1.zip
replace cast with call to sshbuf_mutable_ptr(); ok djm@
Diffstat (limited to 'usr.bin/ssh/msg.c')
-rw-r--r--usr.bin/ssh/msg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/msg.c b/usr.bin/ssh/msg.c
index cf73ba4af17..eb6ce75e825 100644
--- a/usr.bin/ssh/msg.c
+++ b/usr.bin/ssh/msg.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: msg.c,v 1.16 2015/01/15 09:40:00 djm Exp $ */
+/* $OpenBSD: msg.c,v 1.17 2018/07/09 21:59:10 markus Exp $ */
/*
* Copyright (c) 2002 Markus Friedl. All rights reserved.
*
@@ -53,7 +53,7 @@ ssh_msg_send(int fd, u_char type, struct sshbuf *m)
error("ssh_msg_send: write");
return (-1);
}
- if (atomicio(vwrite, fd, (u_char *)sshbuf_ptr(m), mlen) != mlen) {
+ if (atomicio(vwrite, fd, sshbuf_mutable_ptr(m), mlen) != mlen) {
error("ssh_msg_send: write");
return (-1);
}