summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--mux.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index f1e24791c..4d3d2b788 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -29,6 +29,9 @@
29 show the key type that we are offering in debug(), helps distinguish 29 show the key type that we are offering in debug(), helps distinguish
30 between certs and plain keys as the path to the private key is usually 30 between certs and plain keys as the path to the private key is usually
31 the same. 31 the same.
32 - djm@cvs.openbsd.org 2010/04/10 05:48:16
33 [mux.c]
34 fix NULL dereference; from matthew.haub AT alumni.adelaide.edu.au
32 35
3320100410 3620100410
34 - (dtucker) [configure.ac] Put the check for the existence of getaddrinfo 37 - (dtucker) [configure.ac] Put the check for the existence of getaddrinfo
diff --git a/mux.c b/mux.c
index 825fb7a9a..b0d4abe19 100644
--- a/mux.c
+++ b/mux.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: mux.c,v 1.14 2010/01/30 02:54:53 djm Exp $ */ 1/* $OpenBSD: mux.c,v 1.15 2010/04/10 05:48:16 djm Exp $ */
2/* 2/*
3 * Copyright (c) 2002-2008 Damien Miller <djm@openbsd.org> 3 * Copyright (c) 2002-2008 Damien Miller <djm@openbsd.org>
4 * 4 *
@@ -206,7 +206,7 @@ mux_master_control_cleanup_cb(int cid, void *unused)
206 fatal("%s: channel_by_id(%i) == NULL", __func__, cid); 206 fatal("%s: channel_by_id(%i) == NULL", __func__, cid);
207 if (c->remote_id != -1) { 207 if (c->remote_id != -1) {
208 if ((sc = channel_by_id(c->remote_id)) == NULL) 208 if ((sc = channel_by_id(c->remote_id)) == NULL)
209 debug2("%s: channel %d n session channel %d", 209 fatal("%s: channel %d missing session channel %d",
210 __func__, c->self, c->remote_id); 210 __func__, c->self, c->remote_id);
211 c->remote_id = -1; 211 c->remote_id = -1;
212 sc->ctl_chan = -1; 212 sc->ctl_chan = -1;