fix a change server problem

When in the config file, a server has a password set, change the server
to a no-password one at runtime will not overwrite defined server
password in memory. This commit fixed this problem.