diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2003-11-15 00:23:03 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2003-11-15 00:23:03 +0000 |
commit | bf3b030961fb6eff5bc5c08d01c53141550a7db2 (patch) | |
tree | 62a86e3bffe1dee64ee673266ee3b0b3f177fb96 /usr.bin | |
parent | 3cf073402b601d6095dc763f563c357ed294df2c (diff) |
check getpass for NULL. from Jared Yanovich. ok otto@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/bdes/bdes.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/bdes/bdes.c b/usr.bin/bdes/bdes.c index 52cb84366ee..66a46754247 100644 --- a/usr.bin/bdes/bdes.c +++ b/usr.bin/bdes/bdes.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bdes.c,v 1.12 2003/07/02 21:04:09 deraadt Exp $ */ +/* $OpenBSD: bdes.c,v 1.13 2003/11/15 00:23:02 tedu Exp $ */ /* $NetBSD: bdes.c,v 1.2 1995/03/26 03:33:19 glass Exp $ */ /*- @@ -47,7 +47,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)bdes.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: bdes.c,v 1.12 2003/07/02 21:04:09 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: bdes.c,v 1.13 2003/11/15 00:23:02 tedu Exp $"; #endif #endif /* not lint */ @@ -271,7 +271,8 @@ main(int ac, char *av[]) /* * get the key */ - p = getpass("Enter key: "); + if ((p = getpass("Enter key: ")) == NULL) + err(1, "getpass"); /* * copy it, nul-padded, into the key area */ |