]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Fix calloc check in krb5_authdata_context_init
authorGreg Hudson <ghudson@mit.edu>
Fri, 18 Jul 2014 18:51:13 +0000 (14:51 -0400)
committerTom Yu <tlyu@mit.edu>
Fri, 6 Feb 2015 23:28:09 +0000 (18:28 -0500)
(cherry picked from commit 4abfd7bc3819a66f77a1cf121b7608af624ecb6e)

ticket: 8112 (new)
version_fixed: 1.11.6
status: resolved

src/lib/krb5/krb/authdata.c

index 546fb82dc583d90e71062907f50539b07d556a46..0c5ec3c14e032d32edaeb785da1ea119a2d45f1d 100644 (file)
@@ -408,7 +408,7 @@ krb5_authdata_context_init(krb5_context kcontext,
     }
 
     context = calloc(1, sizeof(*context));
-    if (kcontext == NULL) {
+    if (context == NULL) {
         code = ENOMEM;
         goto cleanup;
     }