summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Zeleny <jzeleny@redhat.com>2011-05-03 08:37:40 -0400
committerStephen Gallagher <sgallagh@redhat.com>2011-05-16 08:05:33 -0400
commit6e32020ba248511f4adb5ce89156d576a329d6ad (patch)
tree910167db22786cd9dc0e4eced54bcebc43bc36b8
parentc1f30d284471dbdc00de3a4388489bae3f5a17f0 (diff)
downloadsssd-6e32020ba248511f4adb5ce89156d576a329d6ad.tar.gz
sssd-6e32020ba248511f4adb5ce89156d576a329d6ad.tar.xz
sssd-6e32020ba248511f4adb5ce89156d576a329d6ad.zip
Fixed unitialized return value in match_principal
https://fedorahosted.org/sssd/ticket/858
-rw-r--r--src/util/sss_krb5.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/util/sss_krb5.c b/src/util/sss_krb5.c
index 828e81b00..55874c808 100644
--- a/src/util/sss_krb5.c
+++ b/src/util/sss_krb5.c
@@ -387,7 +387,7 @@ static bool match_principal(krb5_context ctx,
int mode = MODE_NORMAL;
TALLOC_CTX *tmp_ctx;
- bool ret;
+ bool ret = false;
realm_data = krb5_princ_realm(ctx, principal);
@@ -421,7 +421,6 @@ static bool match_principal(krb5_context ctx,
strncmp(primary, primary_str, primary_str_len) != 0) ||
(mode == MODE_POSTFIX &&
strcmp(primary+len_diff, primary_str) != 0)) {
- ret = false;
goto done;
}
}