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: 8112 (new)
version_fixed: 1.11.6
status: resolved
  • Loading branch information
greghudson authored and tlyu committed Feb 6, 2015
1 parent 640080a commit 794e804
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 @@ -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;
}
Expand Down

0 comments on commit 794e804

Please sign in to comment.