Subject: Re: remote listener with port 0 bug?

Re: remote listener with port 0 bug?

From: Przemysław Szczygielski <qus123_at_gmail.com>
Date: Thu, 8 Sep 2011 15:30:51 +0200

> Note that "administratively prohibited" means "prohibited by the client".
> I've investigated it once for my own SSH packet (that does exactly the same
> as libssh2_channel_forward_listen_ex but disregards requested remote port
> altogether), and as far as I can remember the error is caused because of a
> mismatch between what got allocated (37830) and what libssh2 thinks the port
> is (0). I think it was somewhere in packet.c...
>
> In packet.c

if (listen_state->state != libssh2_NB_state_sent) {

        while (listn) {

            if ((listn->port == (int) listen_state->port) &&

listn->port equals 37830, but listen_state->port equals 0...

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2011-09-08