krb5 commit: Fix calloc check in krb5_authdata_context_init

Greg Hudson ghudson at MIT.EDU
Fri Jul 18 16:01:56 EDT 2014


https://github.com/krb5/krb5/commit/4abfd7bc3819a66f77a1cf121b7608af624ecb6e
commit 4abfd7bc3819a66f77a1cf121b7608af624ecb6e
Author: Greg Hudson <ghudson at mit.edu>
Date:   Fri Jul 18 14:51:13 2014 -0400

    Fix calloc check in krb5_authdata_context_init
    
    ticket: 7973
    target_version: 1.12.2
    tags: pullup

 src/lib/krb5/krb/authdata.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/lib/krb5/krb/authdata.c b/src/lib/krb5/krb/authdata.c
index 75b1c6e..fb8beb3 100644
--- a/src/lib/krb5/krb/authdata.c
+++ b/src/lib/krb5/krb/authdata.c
@@ -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;
     }


More information about the cvs-krb5 mailing list