]> andersk Git - openssh.git/blobdiff - channels.c
- stevesk@cvs.openbsd.org 2008/11/11 03:55:11
[openssh.git] / channels.c
index 4af7df5dbf1bd48b88d6f5034b5463dde1b94b2c..225551e6a8d65b4531631d92f67b0703cd274f9a 100644 (file)
@@ -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,
This page took 0.038316 seconds and 4 git commands to generate.