From: thib Date: Sun, 11 Jul 2004 18:11:00 +0000 (+0000) Subject: security : overwrite the pass string everytime X-Git-Tag: ver2_9_5~17 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=db6d92899483f988deb31e20d39e5d158db54a59;p=fcron security : overwrite the pass string everytime --- diff --git a/socket.c b/socket.c index 6821f07..07a3814 100644 --- a/socket.c +++ b/socket.c @@ -21,7 +21,7 @@ * `LICENSE' that comes with the fcron source distribution. */ - /* $Id: socket.c,v 1.13 2003-12-25 22:53:15 thib Exp $ */ + /* $Id: socket.c,v 1.14 2004-07-11 18:11:00 thib Exp $ */ /* This file contains all fcron's code (server) to handle communication with fcrondyn */ @@ -202,6 +202,7 @@ auth_client(struct fcrondyn_cl *client) if ( (pass_cry = crypt(pass_str, pass_sys)) == NULL ) { error_e("could not crypt()"); send(client->fcl_sock_fd, "0", sizeof("0"), 0); + Overwrite(pass_str); return; } @@ -218,6 +219,8 @@ auth_client(struct fcrondyn_cl *client) (char *) client->fcl_cmd, client->fcl_sock_fd); send(client->fcl_sock_fd, "0", sizeof("0"), 0); } + + Overwrite(pass_str); }