+ if (client_p->localClient->auth_user)
+ {
+ memset(client_p->localClient->auth_user, 0,
+ strlen(client_p->localClient->auth_user));
+ rb_free(client_p->localClient->auth_user);
+ client_p->localClient->auth_user = NULL;
+ }
+
+ if ((pass = strchr(buf, ':')) != NULL)
+ {
+ *pass++ = '\0';
+ auth_user = buf;
+ }
+ else
+ {
+ pass = buf;
+ auth_user = NULL;
+ }
+
+ client_p->localClient->passwd = *pass ? rb_strndup(pass, PASSWDLEN) : NULL;
+
+ if(auth_user && *auth_user)
+ client_p->localClient->auth_user = rb_strndup(auth_user, PASSWDLEN);