removed set/getenv functions

This commit is contained in:
Sylvain Rochet
2012-06-02 02:23:56 +02:00
parent 6c908ac727
commit 668d5d9d92
3 changed files with 14 additions and 2 deletions

View File

@@ -1056,11 +1056,12 @@ auth_peer_success(unit, protocol, prot_flavor, name, namelen)
/*
* Save the authenticated name of the peer for later.
*/
/* FIXME: do we need that ? */
if (namelen > sizeof(peer_authname) - 1)
namelen = sizeof(peer_authname) - 1;
MEMCPY(peer_authname, name, namelen);
peer_authname[namelen] = 0;
script_setenv("PEERNAME", peer_authname, 0);
//script_setenv("PEERNAME", peer_authname, 0);
/* Save the authentication method for later. */
auth_done[unit] |= bit;