[PATCH] Fix hang up when connecting a secure network with an empty passphrase