summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/readpass.c
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>2001-07-02 22:29:20 +0000
committermarkus <markus@openbsd.org>2001-07-02 22:29:20 +0000
commit04e3678d2109a1ad7e6a3a63d0dc9274de8ca00a (patch)
tree2183111b45afac11fa86bc045a6a052d167c3d18 /usr.bin/ssh/readpass.c
parentinstall sc7816.h to /usr/includes (used by usr.bin/sectok) (diff)
downloadwireguard-openbsd-04e3678d2109a1ad7e6a3a63d0dc9274de8ca00a.tar.xz
wireguard-openbsd-04e3678d2109a1ad7e6a3a63d0dc9274de8ca00a.zip
do not return NULL, use "" instead.
Diffstat (limited to 'usr.bin/ssh/readpass.c')
-rw-r--r--usr.bin/ssh/readpass.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/readpass.c b/usr.bin/ssh/readpass.c
index 3b6ed72babc..7ab205f8f66 100644
--- a/usr.bin/ssh/readpass.c
+++ b/usr.bin/ssh/readpass.c
@@ -32,7 +32,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: readpass.c,v 1.19 2001/06/24 05:35:33 markus Exp $");
+RCSID("$OpenBSD: readpass.c,v 1.20 2001/07/02 22:29:20 markus Exp $");
#include <readpassphrase.h>
@@ -119,7 +119,7 @@ read_passphrase(const char *prompt, int flags)
}
if (readpassphrase(prompt, buf, sizeof buf, rppflags) == NULL)
- return NULL;
+ return xstrdup("");
ret = xstrdup(buf);
memset(buf, 'x', sizeof buf);