From f8a5abf960f40673a5113cc6820a68eb01662d3e Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 17 Dec 2012 14:17:59 +0100 Subject: libwbclient: Fix null check in process_domain_info_string(). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Found by Coverity. Signed-off-by: Andreas Schneider Reviewed-by: Günther Deschner --- nsswitch/libwbclient/wbc_util.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'nsswitch') diff --git a/nsswitch/libwbclient/wbc_util.c b/nsswitch/libwbclient/wbc_util.c index af134ba7e5..4060e2521c 100644 --- a/nsswitch/libwbclient/wbc_util.c +++ b/nsswitch/libwbclient/wbc_util.c @@ -466,12 +466,7 @@ static wbcErr process_domain_info_string(struct wbcDomainInfo *info, } /* Online/Offline status */ - r = s; - if (r == NULL) { - wbc_status = WBC_ERR_INVALID_RESPONSE; - BAIL_ON_WBC_ERROR(wbc_status); - } if ( strcmp(r, "Offline") == 0) { info->domain_flags |= WBC_DOMINFO_DOMAIN_OFFLINE; } -- cgit