From 91e8aec6b798a86e84d882cf2f55e1d76b5dbb27 Mon Sep 17 00:00:00 2001 From: Jan Zeleny Date: Mon, 30 Aug 2010 15:54:23 +0200 Subject: Cleaned some dead assignments Two needless assignments were deleted, two were complemented with code checking function results. Ticket: #582 --- src/providers/ipa/ipa_auth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/providers/ipa/ipa_auth.c') diff --git a/src/providers/ipa/ipa_auth.c b/src/providers/ipa/ipa_auth.c index 2bd92ba7..2d91457d 100644 --- a/src/providers/ipa/ipa_auth.c +++ b/src/providers/ipa/ipa_auth.c @@ -188,7 +188,7 @@ static void get_password_migration_flag_done(struct tevent_req *subreq) } ret = sysdb_attrs_get_string(reply[0], IPA_CONFIG_MIRATION_ENABLED, &value); - if (strcasecmp(value, "true") == 0) { + if (ret == EOK && strcasecmp(value, "true") == 0) { state->password_migration = true; } -- cgit