Fix a segfault in auth/auth_domain.c error cases.