From: Pierangelo Masarati Date: Wed, 19 Aug 2009 21:46:07 +0000 (+0000) Subject: copy username, much like other string-valued options (more about ITS#6257) X-Git-Tag: ACLCHECK_0~263 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ba2bddafbda8f74ea7df617e04e947a954cc9753;p=openldap copy username, much like other string-valued options (more about ITS#6257) --- diff --git a/libraries/libldap/cyrus.c b/libraries/libldap/cyrus.c index 5591682746..c9a5a46243 100644 --- a/libraries/libldap/cyrus.c +++ b/libraries/libldap/cyrus.c @@ -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: