krb5 commit [krb5-1.11]: Fix calloc check in krb5_authdata_context_init

Tom Yu tlyu at mit.edu
Fri Feb 6 18:44:40 EST 2015


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

    Fix calloc check in krb5_authdata_context_init
    
    (cherry picked from commit 4abfd7bc3819a66f77a1cf121b7608af624ecb6e)
    
    ticket: 8112 (new)
    version_fixed: 1.11.6
    status: resolved

 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 546fb82..0c5ec3c 100644
--- a/src/lib/krb5/krb/authdata.c
+++ b/src/lib/krb5/krb/authdata.c
@@ -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;
     }


More information about the cvs-krb5 mailing list