From 13901dfa7292540b8e2475065c7d977a80cb2ae2 Mon Sep 17 00:00:00 2001 From: Jan Zeleny Date: Mon, 30 Aug 2010 12:38:21 +0200 Subject: 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 --- src/providers/krb5/krb5_auth.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/providers/krb5/krb5_auth.c b/src/providers/krb5/krb5_auth.c index d43bb02d7..341e73aaa 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; } -- cgit