diff options
Diffstat (limited to 'readpass.c')
-rw-r--r-- | readpass.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/readpass.c b/readpass.c index 10171cf67..4eeeed917 100644 --- a/readpass.c +++ b/readpass.c | |||
@@ -32,7 +32,7 @@ | |||
32 | */ | 32 | */ |
33 | 33 | ||
34 | #include "includes.h" | 34 | #include "includes.h" |
35 | RCSID("$OpenBSD: readpass.c,v 1.19 2001/06/24 05:35:33 markus Exp $"); | 35 | RCSID("$OpenBSD: readpass.c,v 1.20 2001/07/02 22:29:20 markus Exp $"); |
36 | 36 | ||
37 | #include "xmalloc.h" | 37 | #include "xmalloc.h" |
38 | #include "readpass.h" | 38 | #include "readpass.h" |
@@ -117,7 +117,7 @@ read_passphrase(const char *prompt, int flags) | |||
117 | } | 117 | } |
118 | 118 | ||
119 | if (readpassphrase(prompt, buf, sizeof buf, rppflags) == NULL) | 119 | if (readpassphrase(prompt, buf, sizeof buf, rppflags) == NULL) |
120 | return NULL; | 120 | return xstrdup(""); |
121 | 121 | ||
122 | ret = xstrdup(buf); | 122 | ret = xstrdup(buf); |
123 | memset(buf, 'x', sizeof buf); | 123 | memset(buf, 'x', sizeof buf); |