doc: Fix a check in the doc code.

This commit is contained in:
Andreas Schneider 2011-08-28 20:02:27 +02:00
parent 2d9cd48b1d
commit 292ed71f09

View File

@ -106,7 +106,9 @@ int direct_forwarding(ssh_session session)
int nbytes, nwritten;
forwarding_channel = ssh_channel_new(session);
if (rc != SSH_OK) return rc;
if (forwarding_channel == NULL) {
return rc;
}
rc = channel_open_forward(forwarding_channel,
"www.google.com", 80,