summaryrefslogtreecommitdiff
path: root/sshconnect.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2002-07-04 00:03:56 +0000
committerBen Lindstrom <mouring@eviladmin.org>2002-07-04 00:03:56 +0000
commit04f9af7dfcac6a2230bbb574ea8ddaa5e39baa04 (patch)
tree3fe9ffee68fde9726c4626e86071fea364b61478 /sshconnect.c
parent723e29aa20cdd59c12ff02c4a7d7d7f45bc07a08 (diff)
- markus@cvs.openbsd.org 2002/06/27 08:49:44
[dh.c ssh-keyscan.c sshconnect.c] more checks for NULL pointers; from grendel@zeitbombe.org; ok deraadt@
Diffstat (limited to 'sshconnect.c')
-rw-r--r--sshconnect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sshconnect.c b/sshconnect.c
index b89321fb8..32e57296e 100644
--- a/sshconnect.c
+++ b/sshconnect.c
@@ -13,7 +13,7 @@
13 */ 13 */
14 14
15#include "includes.h" 15#include "includes.h"
16RCSID("$OpenBSD: sshconnect.c,v 1.126 2002/06/23 03:30:17 deraadt Exp $"); 16RCSID("$OpenBSD: sshconnect.c,v 1.127 2002/06/27 08:49:44 markus Exp $");
17 17
18#include <openssl/bn.h> 18#include <openssl/bn.h>
19 19
@@ -476,7 +476,7 @@ confirm(const char *prompt)
476 (p[0] == '\0') || (p[0] == '\n') || 476 (p[0] == '\0') || (p[0] == '\n') ||
477 strncasecmp(p, "no", 2) == 0) 477 strncasecmp(p, "no", 2) == 0)
478 ret = 0; 478 ret = 0;
479 if (strncasecmp(p, "yes", 3) == 0) 479 if (p && strncasecmp(p, "yes", 3) == 0)
480 ret = 1; 480 ret = 1;
481 if (p) 481 if (p)
482 xfree(p); 482 xfree(p);