if (verbose && logfile)
fprintf(logfile, "Importing context: %7.4f seconds\n",
timeval_subtract(&tm1, &tm2));
- (void) gss_release_buffer(&min_stat, &context_token);
+ free(context_token.value);
return 0;
}
major = krb5_gss_unwrap(&minor, ctx, &wrapped, &buf, NULL, NULL);
check(major, minor, "krb5_gss_unwrap");
assert(buf.length == 8 && memcmp(buf.value, "userwrap", 8) == 0);
- free(buf.value);
+ gssalloc_free(buf.value);
free(wrapped.value);
}
&wrapped);
check(major, minor, "krb5_gss_wrap");
send_data(STDOUT_FILENO, wrapped.value, wrapped.length);
- free(wrapped.value);
+ gssalloc_free(wrapped.value);
}
/* Create a wrap token for the text "kernelmic" and send it to stdout. */
major = krb5_gss_get_mic(&minor, ctx, GSS_C_QOP_DEFAULT, &buf, &mic);
check(major, minor, "krb5_gss_get_mic");
send_data(STDOUT_FILENO, mic.value, mic.length);
- free(mic.value);
+ gssalloc_free(mic.value);
}
/* Create an IOV token for "kernelwrapmic", wrapping only the "wrap" part, and