[channels.c]
     fix -R for protocol 2, noticed by greg@nest.cx.
     bug was introduced with experimental dynamic forwarding.
This commit is contained in:
Ben Lindstrom 2001-05-10 23:24:49 +00:00
Родитель 6aebb340fb
Коммит 6d618466e8
2 изменённых файлов: 12 добавлений и 4 удалений

Просмотреть файл

@ -1,3 +1,10 @@
20010511
- OpenBSD CVS Sync
- markus@cvs.openbsd.org 2001/05/09 22:51:57
[channels.c]
fix -R for protocol 2, noticed by greg@nest.cx.
bug was introduced with experimental dynamic forwarding.
20010509 20010509
- OpenBSD CVS Sync - OpenBSD CVS Sync
- markus@cvs.openbsd.org 2001/05/06 21:23:31 - markus@cvs.openbsd.org 2001/05/06 21:23:31
@ -5384,4 +5391,4 @@
- Wrote replacements for strlcpy and mkdtemp - Wrote replacements for strlcpy and mkdtemp
- Released 1.0pre1 - Released 1.0pre1
$Id: ChangeLog,v 1.1214 2001/05/09 00:38:19 mouring Exp $ $Id: ChangeLog,v 1.1215 2001/05/10 23:24:49 mouring Exp $

Просмотреть файл

@ -40,7 +40,7 @@
*/ */
#include "includes.h" #include "includes.h"
RCSID("$OpenBSD: channels.c,v 1.114 2001/05/08 19:17:30 markus Exp $"); RCSID("$OpenBSD: channels.c,v 1.115 2001/05/09 22:51:57 markus Exp $");
#include <openssl/rsa.h> #include <openssl/rsa.h>
#include <openssl/dsa.h> #include <openssl/dsa.h>
@ -771,8 +771,9 @@ channel_post_port_listener(Channel *c, fd_set * readset, fd_set * writeset)
rtype = (c->type == SSH_CHANNEL_RPORT_LISTENER) ? rtype = (c->type == SSH_CHANNEL_RPORT_LISTENER) ?
"forwarded-tcpip" : "direct-tcpip"; "forwarded-tcpip" : "direct-tcpip";
nextstate = (c->host_port == 0) ? SSH_CHANNEL_DYNAMIC : nextstate = (c->host_port == 0 &&
SSH_CHANNEL_OPENING; c->type != SSH_CHANNEL_RPORT_LISTENER) ?
SSH_CHANNEL_DYNAMIC : SSH_CHANNEL_OPENING;
addrlen = sizeof(addr); addrlen = sizeof(addr);
newsock = accept(c->sock, &addr, &addrlen); newsock = accept(c->sock, &addr, &addrlen);