summaryrefslogtreecommitdiffstats
path: root/src/providers/ipa/ipa_auth.c
diff options
context:
space:
mode:
authorJan Zeleny <jzeleny@redhat.com>2010-08-30 15:54:23 +0200
committerStephen Gallagher <sgallagh@redhat.com>2010-09-07 10:26:47 -0400
commit91e8aec6b798a86e84d882cf2f55e1d76b5dbb27 (patch)
tree2360087dd51604b0102ad3e1a5a4f0c80c923370 /src/providers/ipa/ipa_auth.c
parent96c73559adfbdac96720008fc022cb1d540b53c3 (diff)
downloadsssd-91e8aec6b798a86e84d882cf2f55e1d76b5dbb27.tar.gz
sssd-91e8aec6b798a86e84d882cf2f55e1d76b5dbb27.tar.xz
sssd-91e8aec6b798a86e84d882cf2f55e1d76b5dbb27.zip
Cleaned some dead assignments
Two needless assignments were deleted, two were complemented with code checking function results. Ticket: #582
Diffstat (limited to 'src/providers/ipa/ipa_auth.c')
-rw-r--r--src/providers/ipa/ipa_auth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/ipa/ipa_auth.c b/src/providers/ipa/ipa_auth.c
index 2bd92ba79..2d91457db 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;
}