9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] ssh buglet
@ 2002-01-03  0:57 Russ Cox
  0 siblings, 0 replies; 2+ messages in thread
From: Russ Cox @ 2002-01-03  0:57 UTC (permalink / raw)
  To: 9fans

Different fix: rename getpacket to _getpacket and then add

Packet*
getpacket(int direction) {
	Packet *p;

	for(;;){
		p = _getpacket(direction);
		if(p==nil || (p->type != SSH_MSG_DEBUG && p->type != SSH_MSG_IGNORE))
			return p;
		mfree(p);
	}
	abort();
	return nil; /* 8c */
}

in packet.c.  That way everyone who calls getpacket benefits.

Russ


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [9fans] ssh buglet
@ 2002-01-02 20:00 Micah Stetson
  0 siblings, 0 replies; 2+ messages in thread
From: Micah Stetson @ 2002-01-02 20:00 UTC (permalink / raw)
  To: 9fans

The ssh client isn't ignoring SSH_MSG_IGNORE packets.
Newer versions of OpenSSH send these whenever I run su.
The following changes fix it for me.

diff client_io.c.old client_io.c
440a441,442
> 		case SSH_MSG_IGNORE:
> 			break;
diff client_messages.c.old client_messages.c
349a350,351
> 		case SSH_MSG_IGNORE:
> 			break;

Micah



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-01-03  0:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-03  0:57 [9fans] ssh buglet Russ Cox
  -- strict thread matches above, loose matches on Subject: below --
2002-01-02 20:00 Micah Stetson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).