copy username, much like other string-valued options (more about ITS#6257)

This commit is contained in:
Pierangelo Masarati 2009-08-19 21:46:07 +00:00
parent f52273fe84
commit ba2bddafbd

View file

@ -1035,7 +1035,7 @@ ldap_int_sasl_get_option( LDAP *ld, int option, void *arg )
return -1;
}
*(char **)arg = username;
*(char **)arg = username ? LDAP_STRDUP( username ) : NULL;
} break;
case LDAP_OPT_X_SASL_SECPROPS: