From d83d9356d2ad51145035ca57a8edfce044ce02f0 Mon Sep 17 00:00:00 2001 From: John Safranek Date: Tue, 13 Jan 2015 09:35:43 -0800 Subject: [PATCH] fixed reference to wrong variable in wolfSSH_stream_send() --- src/ssh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ssh.c b/src/ssh.c index 81aabb63..507ec447 100644 --- a/src/ssh.c +++ b/src/ssh.c @@ -456,7 +456,7 @@ int wolfSSH_stream_send(WOLFSSH* ssh, uint8_t* buf, uint32_t bufSz) WLOG(WS_LOG_DEBUG, "Entering wolfSSH_stream_send()"); - if (ssh == NULL || data == NULL) + if (ssh == NULL || buf == NULL) return WS_BAD_ARGUMENT; bytesTxd = SendChannelData(ssh, ssh->channel.peerChannel, buf, bufSz);