diff options
author | Colin Watson <cjwatson@debian.org> | 2013-09-14 15:43:03 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2013-09-14 15:43:03 +0100 |
commit | 8faf8c84430cf3c19705b1d9f8889d256e7fd1fd (patch) | |
tree | e6cb74192adb00fda5e4d1457547851d7e0d86af /gss-genr.c | |
parent | 328b60656f29db6306994d7498dede386ec2d1c3 (diff) | |
parent | c41345ad7ee5a22689e2c009595e85fa27b4b39a (diff) |
merge 6.3p1
Diffstat (limited to 'gss-genr.c')
-rw-r--r-- | gss-genr.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gss-genr.c b/gss-genr.c index f9b39cfd5..630c263da 100644 --- a/gss-genr.c +++ b/gss-genr.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: gss-genr.c,v 1.20 2009/06/22 05:39:28 dtucker Exp $ */ | 1 | /* $OpenBSD: gss-genr.c,v 1.21 2013/05/17 00:13:13 djm Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 2001-2009 Simon Wilkinson. All rights reserved. | 4 | * Copyright (c) 2001-2009 Simon Wilkinson. All rights reserved. |
@@ -214,8 +214,8 @@ void | |||
214 | ssh_gssapi_set_oid_data(Gssctxt *ctx, void *data, size_t len) | 214 | ssh_gssapi_set_oid_data(Gssctxt *ctx, void *data, size_t len) |
215 | { | 215 | { |
216 | if (ctx->oid != GSS_C_NO_OID) { | 216 | if (ctx->oid != GSS_C_NO_OID) { |
217 | xfree(ctx->oid->elements); | 217 | free(ctx->oid->elements); |
218 | xfree(ctx->oid); | 218 | free(ctx->oid); |
219 | } | 219 | } |
220 | ctx->oid = xmalloc(sizeof(gss_OID_desc)); | 220 | ctx->oid = xmalloc(sizeof(gss_OID_desc)); |
221 | ctx->oid->length = len; | 221 | ctx->oid->length = len; |
@@ -238,7 +238,7 @@ ssh_gssapi_error(Gssctxt *ctxt) | |||
238 | 238 | ||
239 | s = ssh_gssapi_last_error(ctxt, NULL, NULL); | 239 | s = ssh_gssapi_last_error(ctxt, NULL, NULL); |
240 | debug("%s", s); | 240 | debug("%s", s); |
241 | xfree(s); | 241 | free(s); |
242 | } | 242 | } |
243 | 243 | ||
244 | char * | 244 | char * |
@@ -319,8 +319,8 @@ ssh_gssapi_delete_ctx(Gssctxt **ctx) | |||
319 | if ((*ctx)->name != GSS_C_NO_NAME) | 319 | if ((*ctx)->name != GSS_C_NO_NAME) |
320 | gss_release_name(&ms, &(*ctx)->name); | 320 | gss_release_name(&ms, &(*ctx)->name); |
321 | if ((*ctx)->oid != GSS_C_NO_OID) { | 321 | if ((*ctx)->oid != GSS_C_NO_OID) { |
322 | xfree((*ctx)->oid->elements); | 322 | free((*ctx)->oid->elements); |
323 | xfree((*ctx)->oid); | 323 | free((*ctx)->oid); |
324 | (*ctx)->oid = GSS_C_NO_OID; | 324 | (*ctx)->oid = GSS_C_NO_OID; |
325 | } | 325 | } |
326 | if ((*ctx)->creds != GSS_C_NO_CREDENTIAL) | 326 | if ((*ctx)->creds != GSS_C_NO_CREDENTIAL) |
@@ -330,7 +330,7 @@ ssh_gssapi_delete_ctx(Gssctxt **ctx) | |||
330 | if ((*ctx)->client_creds != GSS_C_NO_CREDENTIAL) | 330 | if ((*ctx)->client_creds != GSS_C_NO_CREDENTIAL) |
331 | gss_release_cred(&ms, &(*ctx)->client_creds); | 331 | gss_release_cred(&ms, &(*ctx)->client_creds); |
332 | 332 | ||
333 | xfree(*ctx); | 333 | free(*ctx); |
334 | *ctx = NULL; | 334 | *ctx = NULL; |
335 | } | 335 | } |
336 | 336 | ||
@@ -377,7 +377,7 @@ ssh_gssapi_import_name(Gssctxt *ctx, const char *host) | |||
377 | &gssbuf, GSS_C_NT_HOSTBASED_SERVICE, &ctx->name))) | 377 | &gssbuf, GSS_C_NT_HOSTBASED_SERVICE, &ctx->name))) |
378 | ssh_gssapi_error(ctx); | 378 | ssh_gssapi_error(ctx); |
379 | 379 | ||
380 | xfree(gssbuf.value); | 380 | free(gssbuf.value); |
381 | return (ctx->major); | 381 | return (ctx->major); |
382 | } | 382 | } |
383 | 383 | ||