From ba2bddafbda8f74ea7df617e04e947a954cc9753 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Wed, 19 Aug 2009 21:46:07 +0000 Subject: [PATCH] copy username, much like other string-valued options (more about ITS#6257) --- libraries/libldap/cyrus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.39.5