summaryrefslogtreecommitdiff
path: root/readconf.c
diff options
context:
space:
mode:
Diffstat (limited to 'readconf.c')
-rw-r--r--readconf.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/readconf.c b/readconf.c
index d1ffd84a8..ab89e0c05 100644
--- a/readconf.c
+++ b/readconf.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: readconf.c,v 1.172 2008/11/04 19:18:00 stevesk Exp $ */ 1/* $OpenBSD: readconf.c,v 1.173 2008/12/09 02:58:16 djm 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
@@ -1293,9 +1293,13 @@ parse_forward(Forward *fwd, const char *fwdspec, int dynamicfwd)
1293 return (i); 1293 return (i);
1294 1294
1295 fail_free: 1295 fail_free:
1296 if (fwd->connect_host != NULL) 1296 if (fwd->connect_host != NULL) {
1297 xfree(fwd->connect_host); 1297 xfree(fwd->connect_host);
1298 if (fwd->listen_host != NULL) 1298 fwd->connect_host = NULL;
1299 }
1300 if (fwd->listen_host != NULL) {
1299 xfree(fwd->listen_host); 1301 xfree(fwd->listen_host);
1302 fwd->listen_host = NULL;
1303 }
1300 return (0); 1304 return (0);
1301} 1305}