From ingham@Clarke.i-pi.com  Thu Sep  6 10:46:11 2001
Return-Path: <ingham@Clarke.i-pi.com>
Received: from Clarke.i-pi.com (Clarke.i-pi.com [198.49.217.12])
	by hub.freebsd.org (Postfix) with ESMTP id 2F3CD37B405
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  6 Sep 2001 10:46:10 -0700 (PDT)
Received: (from root@localhost)
	by Clarke.i-pi.com (8.11.6/8.11.1) id f86Hk0c35300;
	Thu, 6 Sep 2001 11:46:00 -0600 (MDT)
	(envelope-from ingham)
Message-Id: <200109061746.f86Hk0c35300@Clarke.i-pi.com>
Date: Thu, 6 Sep 2001 11:46:00 -0600 (MDT)
From: Kenneth Ingham <ingham@i-pi.com>
Reply-To: Kenneth Ingham <ingham@i-pi.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: sshd debug messaves need clarification
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         30404
>Category:       bin
>Synopsis:       sshd debug messaves need clarification
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 06 10:50:01 PDT 2001
>Closed-Date:    Fri Sep 7 02:35:49 PDT 2001
>Last-Modified:  Fri Sep 07 02:36:19 PDT 2001
>Originator:     Kenneth Ingham
>Release:        FreeBSD 4.4-RC i386
>Organization:
>Environment:
System: FreeBSD Clarke.i-pi.com 4.4-RC FreeBSD 4.4-RC #15: Thu Aug 30 11:08:58 MDT 2001 ingham@Clarke.i-pi.com:/usr/src/sys/compile/CLARKE i386


>Description:
	ssh -d has two identical ``callback done'' messages.
>How-To-Repeat:
	look at channels.c in sshd source
>Fix:
Apply the following patch

*** channels.c	Thu Sep  6 11:39:43 2001
--- channels.c.orig	Thu Sep  6 11:39:24 2001
***************
*** 1250,1258 ****
  		c->remote_maxpacket = packet_get_int();
  		packet_done();
  		if (c->cb_fn != NULL && c->cb_event == type) {
! 			debug2("channel confirmation callback start");
  			c->cb_fn(c->self, c->cb_arg);
! 			debug2("channel confirmation callback done");
  		}
  		debug("channel %d: open confirm rwindow %d rmax %d", c->self,
  		    c->remote_window, c->remote_maxpacket);
--- 1250,1258 ----
  		c->remote_maxpacket = packet_get_int();
  		packet_done();
  		if (c->cb_fn != NULL && c->cb_event == type) {
! 			debug2("callback start");
  			c->cb_fn(c->self, c->cb_arg);
! 			debug2("callback done");
  		}
  		debug("channel %d: open confirm rwindow %d rmax %d", c->self,
  		    c->remote_window, c->remote_maxpacket);
***************
*** 1301,1309 ****
  		packet_disconnect("Received request for "
  		    "non-open channel %d.", id);
  	if (c->cb_fn != NULL && c->cb_event == type) {
! 		debug2("channel request callback start");
  		c->cb_fn(c->self, c->cb_arg);
! 		debug2("channel request callback done");
  	} else {
  		char *service = packet_get_string(NULL);
  		debug("channel: %d rcvd request for %s", c->self, service);
--- 1301,1309 ----
  		packet_disconnect("Received request for "
  		    "non-open channel %d.", id);
  	if (c->cb_fn != NULL && c->cb_event == type) {
! 		debug2("callback start");
  		c->cb_fn(c->self, c->cb_arg);
! 		debug2("callback done");
  	} else {
  		char *service = packet_get_string(NULL);
  		debug("channel: %d rcvd request for %s", c->self, service);
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: dd 
State-Changed-When: Fri Sep 7 02:35:49 PDT 2001 
State-Changed-Why:  
OpenSSH isn't maintained in-tree.  Please send this stuff to the 
OpenSSH developers. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=30404 
>Unformatted:
