]> 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>
Mon, 21 Jul 2014 22:21:46 +0000 (18:21 -0400)
(cherry picked from commit 4abfd7bc3819a66f77a1cf121b7608af624ecb6e)

ticket: 7973
version_fixed: 1.12.2
status: resolved

src/lib/krb5/krb/authdata.c

index 75b1c6ec0fec92f9de0764c5f1a8c63b9c8e3520..fb8beb3cfdb814927b36686e19ce9022e0527e2b 100644 (file)
@@ -407,7 +407,7 @@ krb5_authdata_context_init(krb5_context kcontext,
     }
 
     context = calloc(1, sizeof(*context));
-    if (kcontext == NULL) {
+    if (context == NULL) {
         code = ENOMEM;
         goto cleanup;
     }