=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/compat.c,v retrieving revision 1.18 retrieving revision 1.19 diff -u -r1.18 -r1.19 --- src/usr.bin/ssh/compat.c 2000/07/08 23:17:31 1.18 +++ src/usr.bin/ssh/compat.c 2000/07/09 01:27:32 1.19 @@ -28,7 +28,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: compat.c,v 1.18 2000/07/08 23:17:31 provos Exp $"); +RCSID("$OpenBSD: compat.c,v 1.19 2000/07/09 01:27:32 ho Exp $"); #include "ssh.h" #include "packet.h" @@ -87,7 +87,7 @@ if (spec == NULL) return ret; q = s = xstrdup(spec); - for ((p = strsep(&q, SEP)); p; (p = strsep(&q, SEP))) { + for ((p = strsep(&q, SEP)); p && *p != '\0'; (p = strsep(&q, SEP))) { switch(atoi(p)) { case 1: if (ret == SSH_PROTO_UNKNOWN)