From c999f2d8138e143532f44cb26e0a77b1a68fb3c2 Mon Sep 17 00:00:00 2001 From: lotodore Date: Sun, 21 Mar 2010 18:07:23 +0000 Subject: [PATCH] Reverting some change, as it does not seem to have any effect. --- src/net/common/sessiondata.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/net/common/sessiondata.cpp b/src/net/common/sessiondata.cpp index f48fb967..934695a5 100644 --- a/src/net/common/sessiondata.cpp +++ b/src/net/common/sessiondata.cpp @@ -97,9 +97,8 @@ SessionData::CreateClientAuthSession(Gsasl *context, const string &userName, con if (errorCode == GSASL_OK) { char *base64User = NULL; - size_t lenBase64User = 0; - gsasl_base64_to(userName.c_str(), userName.length(), &base64User, &lenBase64User); - gsasl_property_set(m_authSession, GSASL_AUTHID, string(base64User, lenBase64User).c_str()); + gsasl_base64_to(userName.c_str(), userName.length(), &base64User, NULL); + gsasl_property_set(m_authSession, GSASL_AUTHID, base64User); gsasl_free(base64User); gsasl_property_set(m_authSession, GSASL_PASSWORD, password.c_str());