diff options
| author | Greg Hudson <ghudson@mit.edu> | 2012-08-11 00:17:50 -0400 |
|---|---|---|
| committer | Greg Hudson <ghudson@mit.edu> | 2012-08-11 00:28:34 -0400 |
| commit | 64903f771f8ca381013ec49fc2a5e5d69bf4bcff (patch) | |
| tree | 67323a7532dbc0fed8c118aaf7dd64aa494dfb21 /src/appl | |
| parent | 1870feda057e24826f505eb5f3151aad3041ab1e (diff) | |
| download | krb5-64903f771f8ca381013ec49fc2a5e5d69bf4bcff.tar.gz krb5-64903f771f8ca381013ec49fc2a5e5d69bf4bcff.tar.xz krb5-64903f771f8ca381013ec49fc2a5e5d69bf4bcff.zip | |
Stop misusing gss_release_buffer in test programs
Use free() instead of gss_release_buffer() when freeing the locally
allocated context_token in the sample gss-server program. Use
gssalloc_free() instead of free when freeing buffers in
t_kgss_kernel.c (where we can't use gss_release_buffer).
Diffstat (limited to 'src/appl')
| -rw-r--r-- | src/appl/gss-sample/gss-server.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/appl/gss-sample/gss-server.c b/src/appl/gss-sample/gss-server.c index 0f5fea0f81..ed78be58ca 100644 --- a/src/appl/gss-sample/gss-server.c +++ b/src/appl/gss-sample/gss-server.c @@ -382,7 +382,7 @@ test_import_export_context(gss_ctx_id_t *context) 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; } |
