From d685e5a31feea35fb99e1a31a70b3c60a7f2a0eb Mon Sep 17 00:00:00 2001 From: "djm@openbsd.org" Date: Wed, 25 Oct 2017 02:10:39 +0000 Subject: [PATCH] upstream commit uninitialised variable in PermitTunnel printing code Upstream-ID: f04dc33e42855704e116b8da61095ecc71bc9e9a --- servconf.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/servconf.c b/servconf.c index 288ec0889..7fc3551d7 100644 --- a/servconf.c +++ b/servconf.c @@ -1,5 +1,5 @@ -/* $OpenBSD: servconf.c,v 1.317 2017/10/25 00:19:47 djm Exp $ */ +/* $OpenBSD: servconf.c,v 1.318 2017/10/25 02:10:39 djm Exp $ */ /* * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland * All rights reserved @@ -2538,11 +2538,13 @@ dump_config(ServerOptions *o) printf("maxstartups %d:%d:%d\n", o->max_startups_begin, o->max_startups_rate, o->max_startups); - for (i = 0; tunmode_desc[i].val != -1; i++) + s = NULL; + for (i = 0; tunmode_desc[i].val != -1; i++) { if (tunmode_desc[i].val == o->permit_tun) { s = tunmode_desc[i].text; break; } + } dump_cfg_string(sPermitTunnel, s); printf("ipqos %s ", iptos2str(o->ip_qos_interactive));