don't set an empty password or auth_user
This commit is contained in:
parent
978daf7118
commit
1d53b4283b
|
@ -83,9 +83,9 @@ mr_pass(struct Client *client_p, struct Client *source_p, int parc, const char *
|
||||||
auth_user = NULL;
|
auth_user = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
client_p->localClient->passwd = rb_strndup(pass, PASSWDLEN);
|
client_p->localClient->passwd = *pass ? rb_strndup(pass, PASSWDLEN) : NULL;
|
||||||
|
|
||||||
if(auth_user)
|
if(auth_user && *auth_user)
|
||||||
client_p->localClient->auth_user = rb_strndup(auth_user, PASSWDLEN);
|
client_p->localClient->auth_user = rb_strndup(auth_user, PASSWDLEN);
|
||||||
|
|
||||||
/* These are for servers only */
|
/* These are for servers only */
|
||||||
|
|
Loading…
Reference in New Issue