]> andersk Git - openssh.git/blobdiff - sshconnect.c
- markus@cvs.openbsd.org 2002/06/27 08:49:44
[openssh.git] / sshconnect.c
index b89321fb8392b9154db711ec4df28e7d058e919d..32e57296ee6eaf3c909988d0f9d607a5cb4f14c5 100644 (file)
@@ -13,7 +13,7 @@
  */
 
 #include "includes.h"
-RCSID("$OpenBSD: sshconnect.c,v 1.126 2002/06/23 03:30:17 deraadt Exp $");
+RCSID("$OpenBSD: sshconnect.c,v 1.127 2002/06/27 08:49:44 markus Exp $");
 
 #include <openssl/bn.h>
 
@@ -476,7 +476,7 @@ confirm(const char *prompt)
                    (p[0] == '\0') || (p[0] == '\n') ||
                    strncasecmp(p, "no", 2) == 0)
                        ret = 0;
-               if (strncasecmp(p, "yes", 3) == 0)
+               if (p && strncasecmp(p, "yes", 3) == 0)
                        ret = 1;
                if (p)
                        xfree(p);
This page took 0.088195 seconds and 4 git commands to generate.