summaryrefslogtreecommitdiff
path: root/readpass.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-07-04 05:19:27 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-07-04 05:19:27 +0000
commit4f42d8cda393bebebdd5ab706464e60ecdb7346f (patch)
treeb607c1c557eaea35f6edc7ec6f3896e27345db8c /readpass.c
parent4983d5ebd50800edd3c7caa08a37a5206221441d (diff)
- markus@cvs.openbsd.org 2001/07/02 22:29:20
[readpass.c] do not return NULL, use "" instead.
Diffstat (limited to 'readpass.c')
-rw-r--r--readpass.c4
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"
35RCSID("$OpenBSD: readpass.c,v 1.19 2001/06/24 05:35:33 markus Exp $"); 35RCSID("$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);