Don't copy and leak user; it's an env var so just use it directly.

This commit is contained in:
Howard Chu 2001-12-15 12:07:40 +00:00
parent 826056e75b
commit 2b0819c4a9

View file

@ -459,8 +459,7 @@ void ldap_int_initialize( struct ldapoptions *gopts, int *dbglvl )
if( user == NULL ) user = getenv("LOGNAME");
if( user != NULL ) {
/* this value is leaked, need at_exit() handler */
gopts->ldo_def_sasl_authcid = LDAP_STRDUP( user );
gopts->ldo_def_sasl_authcid = user;
}
}
#endif