Skip to content

Commit

Permalink
Fix compile time warning where we don't have krb5_free_error_message
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Feb 4, 2014
1 parent 11d535e commit 412fb80
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/modules/rlm_krb5/krb5.c
Expand Up @@ -72,7 +72,12 @@ char const *rlm_krb5_error(krb5_context context, krb5_error_code code)
#ifdef HAVE_KRB5_FREE_ERROR_MESSAGE
krb5_free_error_message(context, msg);
#elif defined(HAVE_KRB5_FREE_ERROR_STRING)
krb5_free_error_string(context, msg);
{
char *free;

memcpy(&free, &msg, sizeof(free));
krb5_free_error_string(context, free);
}
#else
# error "No way to free error strings, missing krb5_free_error_message() and krb5_free_error_string()"
#endif
Expand Down

0 comments on commit 412fb80

Please sign in to comment.