Commit 2b0819c4 authored by Howard Chu's avatar Howard Chu
Browse files

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

parent 826056e7
...@@ -459,8 +459,7 @@ void ldap_int_initialize( struct ldapoptions *gopts, int *dbglvl ) ...@@ -459,8 +459,7 @@ void ldap_int_initialize( struct ldapoptions *gopts, int *dbglvl )
if( user == NULL ) user = getenv("LOGNAME"); if( user == NULL ) user = getenv("LOGNAME");
if( user != NULL ) { if( user != NULL ) {
/* this value is leaked, need at_exit() handler */ gopts->ldo_def_sasl_authcid = user;
gopts->ldo_def_sasl_authcid = LDAP_STRDUP( user );
} }
} }
#endif #endif
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment