krb5 commit [krb5-1.12]: Fix calloc check in krb5_authdata_context_init
Tom Yu
tlyu at MIT.EDU
Mon Jul 21 18:33:44 EDT 2014
https://github.com/krb5/krb5/commit/6f99ee3aa458443b9ca4722c2aab82db1400bbbf
commit 6f99ee3aa458443b9ca4722c2aab82db1400bbbf
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: 7973
version_fixed: 1.12.2
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 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