From e5f455afbc2d149527bfd08f4e89903a3a8da17a Mon Sep 17 00:00:00 2001 From: Pavel Březina Date: Tue, 18 Jun 2013 12:28:36 +0200 Subject: failover: return error when SRV lookup returned only duplicates https://fedorahosted.org/sssd/ticket/1947 Otherwise we risk that the meta server is removed from the server list, but without a chance to return, because there may be no fo_server with srv_data = meta. Also if state->meta->next is NULL (it is still orphaned because we try to errornously expand it without invoking collapse first), state->out will be NULL and SSSD will crash. New error code: ERR_SRV_DUPLICATES --- src/util/util_errors.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/util/util_errors.h') diff --git a/src/util/util_errors.h b/src/util/util_errors.h index 65d37aed..ca447282 100644 --- a/src/util/util_errors.h +++ b/src/util/util_errors.h @@ -66,6 +66,7 @@ enum sssd_errors { ERR_ACCESS_DENIED, ERR_SRV_NOT_FOUND, ERR_SRV_LOOKUP_ERROR, + ERR_SRV_DUPLICATES, ERR_DYNDNS_FAILED, ERR_DYNDNS_TIMEOUT, ERR_DYNDNS_OFFLINE, -- cgit