]> 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)
committerGreg Hudson <ghudson@mit.edu>
Fri, 18 Jul 2014 19:57:30 +0000 (15:57 -0400)
ticket: 7973
target_version: 1.12.2
tags: pullup

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;
     }