Skip to content

Commit

Permalink
Fix calloc check in krb5_authdata_context_init
Browse files Browse the repository at this point in the history
(cherry picked from commit 4abfd7b)

ticket: 7973
version_fixed: 1.12.2
status: resolved
  • Loading branch information
greghudson authored and tlyu committed Jul 21, 2014
1 parent 106f45c commit 6f99ee3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/krb5/krb/authdata.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 6f99ee3

Please sign in to comment.