|
Lines 2525-2530
Link Here
|
| 2525 |
if (num_permitted_opens >= SSH_MAX_FORWARDS_PER_DIRECTION) |
2525 |
if (num_permitted_opens >= SSH_MAX_FORWARDS_PER_DIRECTION) |
| 2526 |
fatal("channel_request_remote_forwarding: too many forwards"); |
2526 |
fatal("channel_request_remote_forwarding: too many forwards"); |
| 2527 |
|
2527 |
|
|
|
2528 |
if (listen_host != NULL && |
| 2529 |
strlen(listen_host) > SSH_CHANNEL_PATH_LEN - 1) { |
| 2530 |
error("Binding address too long."); |
| 2531 |
return 0; |
| 2532 |
} |
| 2533 |
|
| 2528 |
/* Send the forward request to the remote side. */ |
2534 |
/* Send the forward request to the remote side. */ |
| 2529 |
if (compat20) { |
2535 |
if (compat20) { |
| 2530 |
const char *address_to_bind; |
2536 |
const char *address_to_bind; |