mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-01 12:39:35 -05:00
Don't copy and leak user; it's an env var so just use it directly.
This commit is contained in:
parent
826056e75b
commit
2b0819c4a9
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue