diff options
author | Darren Tucker <dtucker@zip.com.au> | 2008-11-11 16:40:22 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2008-11-11 16:40:22 +1100 |
commit | 22662e880f9c61f00908fe3dc27a6988ac2cccd0 (patch) | |
tree | d4f4349f57c72db5dc470feeb40a5250af49821d /channels.c | |
parent | 49c31c42250e99af9170623094585d8851838a62 (diff) |
- stevesk@cvs.openbsd.org 2008/11/11 03:55:11
[channels.c]
for sshd -T print 'permitopen any' vs. 'permitopen' for case of no
permitopen's; ok and input dtucker@
Diffstat (limited to 'channels.c')
-rw-r--r-- | channels.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $OpenBSD: channels.c,v 1.287 2008/11/01 06:43:33 stevesk Exp $ */ +/* $OpenBSD: channels.c,v 1.288 2008/11/11 03:55:11 stevesk Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -2791,6 +2791,10 @@ channel_print_adm_permitted_opens(void) { int i; + if (num_adm_permitted_opens == 0) { + printf(" any"); + return; + } for (i = 0; i < num_adm_permitted_opens; i++) if (permitted_adm_opens[i].host_to_connect != NULL) printf(" %s:%d", permitted_adm_opens[i].host_to_connect, |