winsane: Fixed authentication loop to not rely on deleted memory