summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2007-10-26 14:27:22 +1000
committerDamien Miller <djm@mindrot.org>2007-10-26 14:27:22 +1000
commit5a4456c6a592143a0a25ad925279eaf9ff620cc4 (patch)
tree14fa0c9c865271c2ac117a0904ecc1f153f86977
parent3dddab3b951cc7d28218d432f53fcbd499b0bc71 (diff)
- markus@cvs.openbsd.org 2007/10/22 19:10:24
[readconf.c] make sure that both the local and remote port are correct when parsing -L; Jan Pechanec (bz #1378)
-rw-r--r--ChangeLog6
-rw-r--r--readconf.c4
2 files changed, 7 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index c199a0ed4..d23839172 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -37,6 +37,10 @@
37 removes an unused variable 37 removes an unused variable
38 correctly counts line number 38 correctly counts line number
39 "looks ok" ray@ markus@ 39 "looks ok" ray@ markus@
40 - markus@cvs.openbsd.org 2007/10/22 19:10:24
41 [readconf.c]
42 make sure that both the local and remote port are correct when
43 parsing -L; Jan Pechanec (bz #1378)
40 44
4120070927 4520070927
42 - (dtucker) [configure.ac atomicio.c] Fall back to including <sys/poll.h> if 46 - (dtucker) [configure.ac atomicio.c] Fall back to including <sys/poll.h> if
@@ -3308,4 +3312,4 @@
3308 OpenServer 6 and add osr5bigcrypt support so when someone migrates 3312 OpenServer 6 and add osr5bigcrypt support so when someone migrates
3309 passwords between UnixWare and OpenServer they will still work. OK dtucker@ 3313 passwords between UnixWare and OpenServer they will still work. OK dtucker@
3310 3314
3311$Id: ChangeLog,v 1.4768 2007/10/26 04:27:02 djm Exp $ 3315$Id: ChangeLog,v 1.4769 2007/10/26 04:27:22 djm Exp $
diff --git a/readconf.c b/readconf.c
index d57d4551d..df058d35a 100644
--- a/readconf.c
+++ b/readconf.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: readconf.c,v 1.162 2007/03/20 03:56:12 tedu Exp $ */ 1/* $OpenBSD: readconf.c,v 1.163 2007/10/22 19:10:24 markus Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -1255,7 +1255,7 @@ parse_forward(Forward *fwd, const char *fwdspec)
1255 1255
1256 xfree(p); 1256 xfree(p);
1257 1257
1258 if (fwd->listen_port == 0 && fwd->connect_port == 0) 1258 if (fwd->listen_port == 0 || fwd->connect_port == 0)
1259 goto fail_free; 1259 goto fail_free;
1260 1260
1261 if (fwd->connect_host != NULL && 1261 if (fwd->connect_host != NULL &&