View | Details | Raw Unified | Return to bug 2363 | Differences between
and this patch

Collapse All | Expand All

(-)a/mux.c (+13 lines)
Lines 627-632 mux_confirm_remote_forward(int type, u_int32_t seq, void *ctxt) Link Here
627
		else
627
		else
628
			xasprintf(&failmsg, "remote port forwarding failed for "
628
			xasprintf(&failmsg, "remote port forwarding failed for "
629
			    "listen port %d", rfwd->listen_port);
629
			    "listen port %d", rfwd->listen_port);
630
631
                debug2("%s: clearing registered forwarding for: listen %d, "
632
		    "connect %s:%d", __func__, rfwd->listen_port,
633
		    rfwd->connect_path ? rfwd->connect_path :
634
		    rfwd->connect_host, rfwd->connect_port);
635
636
		free(rfwd->listen_host);
637
		free(rfwd->listen_path);
638
		free(rfwd->connect_host);
639
		free(rfwd->connect_path);
640
		rfwd->listen_host = rfwd->connect_host = NULL;
641
		rfwd->listen_path = rfwd->connect_path = NULL;
642
		rfwd->listen_port = rfwd->connect_port = 0;
630
	}
643
	}
631
 fail:
644
 fail:
632
	error("%s: %s", __func__, failmsg);
645
	error("%s: %s", __func__, failmsg);

Return to bug 2363