summaryrefslogtreecommitdiff
path: root/src/providers/krb5/krb5_auth.c
diff options
context:
space:
mode:
authorJan Zeleny <jzeleny@redhat.com>2010-08-30 12:38:21 +0200
committerStephen Gallagher <sgallagh@redhat.com>2010-09-02 12:23:19 -0400
commit13901dfa7292540b8e2475065c7d977a80cb2ae2 (patch)
tree45e60746fb42b638e22d8fe795d7f99c276a032b /src/providers/krb5/krb5_auth.c
parent8e3b80291c0ecfd26cfdb87a7c9dba4af9dbc10e (diff)
downloadsssd-13901dfa7292540b8e2475065c7d977a80cb2ae2.tar.gz
sssd-13901dfa7292540b8e2475065c7d977a80cb2ae2.tar.bz2
sssd-13901dfa7292540b8e2475065c7d977a80cb2ae2.zip
Fixed potential comparison of undefined variable
If the allocation on line 678 failed, the value of ret was undefined in following comparison. ENOMEM is now assigned before the comparison. Ticket: #578
Diffstat (limited to 'src/providers/krb5/krb5_auth.c')
-rw-r--r--src/providers/krb5/krb5_auth.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/providers/krb5/krb5_auth.c b/src/providers/krb5/krb5_auth.c
index d43bb02d..341e73aa 100644
--- a/src/providers/krb5/krb5_auth.c
+++ b/src/providers/krb5/krb5_auth.c
@@ -677,6 +677,7 @@ struct tevent_req *krb5_auth_send(TALLOC_CTX *mem_ctx,
attrs = talloc_array(state, const char *, 6);
if (attrs == NULL) {
+ ret = ENOMEM;
goto done;
}