From: Thibault Godouet 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: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34fff3e27232ba41fe35b300b750e95a10c750db;p=thirdparty%2Ffcron.git 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); }