Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-6]: src/crypto/dist/ssh Pull up revision 1.18 (requested by luk...



details:   https://anonhg.NetBSD.org/src/rev/47032959c25d
branches:  netbsd-1-6
changeset: 530257:47032959c25d
user:      tron <tron%NetBSD.org@localhost>
date:      Sun Jun 15 12:44:25 2003 +0000

description:
Pull up revision 1.18 (requested by lukem in ticket #1231):
Add missing
        hp = strtok(NULL, ",");
to end of while loop which parses "host.allow" from login.conf(5).
Otherwise, sshd(8) would just infinite loop unless there was a
(positive or negative) match in the first word of the "host.allow" list...

diffstat:

 crypto/dist/ssh/auth.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 92dde4481f43 -r 47032959c25d crypto/dist/ssh/auth.c
--- a/crypto/dist/ssh/auth.c    Sun Jun 15 12:42:45 2003 +0000
+++ b/crypto/dist/ssh/auth.c    Sun Jun 15 12:44:25 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: auth.c,v 1.12.2.2 2002/06/26 16:52:43 tv Exp $ */
+/*     $NetBSD: auth.c,v 1.12.2.3 2003/06/15 12:44:25 tron Exp $       */
 /*
  * Copyright (c) 2000 Markus Friedl.  All rights reserved.
  *
@@ -141,6 +141,7 @@
                        }
                        if (match_name > 0 || match_ip > 0)
                                break;
+                       hp = strtok(NULL, ",");
                }
                free(cap_hlist);
                if (hp == NULL) {



Home | Main Index | Thread Index | Old Index