aboutsummaryrefslogtreecommitdiff
path: root/server-msg.c
diff options
context:
space:
mode:
Diffstat (limited to 'server-msg.c')
-rw-r--r--server-msg.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/server-msg.c b/server-msg.c
index 87a8d68a..af96c07e 100644
--- a/server-msg.c
+++ b/server-msg.c
@@ -1,4 +1,4 @@
-/* $Id: server-msg.c,v 1.66 2009-05-04 17:58:27 nicm Exp $ */
+/* $OpenBSD: server-msg.c,v 1.2 2009/06/04 21:43:24 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -278,13 +278,14 @@ server_msg_fn_unlock(struct hdr *hdr, struct client *c)
if (server_unlock(pass) != 0) {
#define MSG "bad password"
server_write_client(c, MSG_ERROR, MSG, (sizeof MSG) - 1);
- server_write_client(c, MSG_EXIT, NULL, 0);
- return (0);
#undef MSG
}
server_write_client(c, MSG_EXIT, NULL, 0);
+ memset(pass, 0, strlen(pass));
+ xfree(pass);
+
return (0);
}