summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--channels.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channels.c b/channels.c
index b3c490eb4..6a55d3bf3 100644
--- a/channels.c
+++ b/channels.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: channels.c,v 1.373 2017/09/23 22:04:07 djm Exp $ */ 1/* $OpenBSD: channels.c,v 1.374 2017/09/24 09:50:01 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
@@ -1941,7 +1941,7 @@ channel_handle_wfd(struct ssh *ssh, Channel *c,
1941 1941
1942 if (c->datagram) { 1942 if (c->datagram) {
1943 /* ignore truncated writes, datagrams might get lost */ 1943 /* ignore truncated writes, datagrams might get lost */
1944 len = write(c->wfd, data, dlen); 1944 len = write(c->wfd, buf, dlen);
1945 free(data); 1945 free(data);
1946 if (len < 0 && (errno == EINTR || errno == EAGAIN || 1946 if (len < 0 && (errno == EINTR || errno == EAGAIN ||
1947 errno == EWOULDBLOCK)) 1947 errno == EWOULDBLOCK))