summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--channels.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/channels.c b/channels.c
index 3ab4823a9..d1976f41b 100644
--- a/channels.c
+++ b/channels.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: channels.c,v 1.368 2017/09/12 06:35:31 djm Exp $ */ 1/* $OpenBSD: channels.c,v 1.369 2017/09/12 07:32:04 djm Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -1836,6 +1836,7 @@ channel_handle_wfd(struct ssh *ssh, Channel *c,
1836 if ((r = sshbuf_get_string(c->output, &data, &dlen)) != 0) 1836 if ((r = sshbuf_get_string(c->output, &data, &dlen)) != 0)
1837 fatal("%s: channel %d: get datagram: %s", __func__, 1837 fatal("%s: channel %d: get datagram: %s", __func__,
1838 c->self, ssh_err(r)); 1838 c->self, ssh_err(r));
1839 buf = data;
1839 } else { 1840 } else {
1840 buf = data = sshbuf_mutable_ptr(c->output); 1841 buf = data = sshbuf_mutable_ptr(c->output);
1841 dlen = sshbuf_len(c->output); 1842 dlen = sshbuf_len(c->output);