summaryrefslogtreecommitdiff
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
parent4983d5ebd50800edd3c7caa08a37a5206221441d (diff)
- markus@cvs.openbsd.org 2001/07/02 22:29:20
[readpass.c] do not return NULL, use "" instead.
-rw-r--r--ChangeLog5
-rw-r--r--readpass.c4
2 files changed, 6 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 13b087d5a..37b5e3a7c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -118,6 +118,9 @@
118 [serverloop.c session.c session.h] 118 [serverloop.c session.c session.h]
119 wait until !session_have_children(); bugreport from 119 wait until !session_have_children(); bugreport from
120 Lutz.Jaenicke@aet.TU-Cottbus.DE 120 Lutz.Jaenicke@aet.TU-Cottbus.DE
121 - markus@cvs.openbsd.org 2001/07/02 22:29:20
122 [readpass.c]
123 do not return NULL, use "" instead.
121 124
12220010629 12520010629
123 - (bal) Removed net_aton() since we don't use it any more 126 - (bal) Removed net_aton() since we don't use it any more
@@ -5945,4 +5948,4 @@
5945 - Wrote replacements for strlcpy and mkdtemp 5948 - Wrote replacements for strlcpy and mkdtemp
5946 - Released 1.0pre1 5949 - Released 1.0pre1
5947 5950
5948$Id: ChangeLog,v 1.1373 2001/07/04 05:17:40 mouring Exp $ 5951$Id: ChangeLog,v 1.1374 2001/07/04 05:19:27 mouring Exp $
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);