summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/mux.c
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2010-04-10 05:48:17 +0000
committerDamien Miller <djm@cvs.openbsd.org>2010-04-10 05:48:17 +0000
commit6590a155b69247fe267dfb3ccc5140f5dbfbcead (patch)
treec47ebf2b741c1ef8434665cc29821e32b1036877 /usr.bin/ssh/mux.c
parent697ebde8366d2951d0d7424d1ebc149edebb2fd0 (diff)
fix NULL dereference; from matthew.haub AT alumni.adelaide.edu.au
Diffstat (limited to 'usr.bin/ssh/mux.c')
-rw-r--r--usr.bin/ssh/mux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/mux.c b/usr.bin/ssh/mux.c
index ef8e20acacf..0e19aed218f 100644
--- a/usr.bin/ssh/mux.c
+++ b/usr.bin/ssh/mux.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mux.c,v 1.14 2010/01/30 02:54:53 djm Exp $ */
+/* $OpenBSD: mux.c,v 1.15 2010/04/10 05:48:16 djm Exp $ */
/*
* Copyright (c) 2002-2008 Damien Miller <djm@openbsd.org>
*
@@ -189,7 +189,7 @@ mux_master_control_cleanup_cb(int cid, void *unused)
fatal("%s: channel_by_id(%i) == NULL", __func__, cid);
if (c->remote_id != -1) {
if ((sc = channel_by_id(c->remote_id)) == NULL)
- debug2("%s: channel %d n session channel %d",
+ fatal("%s: channel %d missing session channel %d",
__func__, c->self, c->remote_id);
c->remote_id = -1;
sc->ctl_chan = -1;