mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-08-01 11:26:52 +03:00
doc: Fix a check in the doc code.
This commit is contained in:
@ -106,7 +106,9 @@ int direct_forwarding(ssh_session session)
|
|||||||
int nbytes, nwritten;
|
int nbytes, nwritten;
|
||||||
|
|
||||||
forwarding_channel = ssh_channel_new(session);
|
forwarding_channel = ssh_channel_new(session);
|
||||||
if (rc != SSH_OK) return rc;
|
if (forwarding_channel == NULL) {
|
||||||
|
return rc;
|
||||||
|
}
|
||||||
|
|
||||||
rc = channel_open_forward(forwarding_channel,
|
rc = channel_open_forward(forwarding_channel,
|
||||||
"www.google.com", 80,
|
"www.google.com", 80,
|
||||||
|
Reference in New Issue
Block a user