Skip to content

Commit

Permalink
Fix calloc check in krb5_authdata_context_init
Browse files Browse the repository at this point in the history
ticket: 7973
target_version: 1.12.2
tags: pullup
  • Loading branch information
greghudson committed Jul 18, 2014
1 parent e7e0875 commit 4abfd7b
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

1 comment on commit 4abfd7b

@wfiveash
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I love one character bug fixes, don't you? 8^)

Please sign in to comment.