| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: send_to_kdc.c,v 1.6 2017/01/29 18:58:08 christos Exp $ */ | | 1 | /* $NetBSD: send_to_kdc.c,v 1.7 2017/01/30 00:25:15 christos Exp $ */ |
2 | | | 2 | |
3 | /* | | 3 | /* |
4 | * Copyright (c) 1997 - 2002 Kungliga Tekniska Högskolan | | 4 | * Copyright (c) 1997 - 2002 Kungliga Tekniska Högskolan |
5 | * (Royal Institute of Technology, Stockholm, Sweden). | | 5 | * (Royal Institute of Technology, Stockholm, Sweden). |
6 | * All rights reserved. | | 6 | * All rights reserved. |
7 | * | | 7 | * |
8 | * Portions Copyright (c) 2010 - 2013 Apple Inc. All rights reserved. | | 8 | * Portions Copyright (c) 2010 - 2013 Apple Inc. All rights reserved. |
9 | * | | 9 | * |
10 | * Redistribution and use in source and binary forms, with or without | | 10 | * Redistribution and use in source and binary forms, with or without |
11 | * modification, are permitted provided that the following conditions | | 11 | * modification, are permitted provided that the following conditions |
12 | * are met: | | 12 | * are met: |
13 | * | | 13 | * |
14 | * 1. Redistributions of source code must retain the above copyright | | 14 | * 1. Redistributions of source code must retain the above copyright |
| @@ -1238,27 +1238,27 @@ out: | | | @@ -1238,27 +1238,27 @@ out: |
1238 | krb5_data_zero(&ctx->response); | | 1238 | krb5_data_zero(&ctx->response); |
1239 | } else { | | 1239 | } else { |
1240 | krb5_data_free(&ctx->response); | | 1240 | krb5_data_free(&ctx->response); |
1241 | krb5_clear_error_message (context); | | 1241 | krb5_clear_error_message (context); |
1242 | ret = KRB5_KDC_UNREACH; | | 1242 | ret = KRB5_KDC_UNREACH; |
1243 | krb5_set_error_message(context, ret, | | 1243 | krb5_set_error_message(context, ret, |
1244 | N_("unable to reach any KDC in realm %s", ""), | | 1244 | N_("unable to reach any KDC in realm %s", ""), |
1245 | realm); | | 1245 | realm); |
1246 | } | | 1246 | } |
1247 | | | 1247 | |
1248 | _krb5_debug(context, 1, | | 1248 | _krb5_debug(context, 1, |
1249 | "%s %s done: %d hosts %lu packets %lu:" | | 1249 | "%s %s done: %d hosts %lu packets %lu:" |
1250 | " wc: %jd.%06ld nr: %jd.%06ld kh: %jd.%06ld tid: %08x", | | 1250 | " wc: %jd.%06ld nr: %jd.%06ld kh: %jd.%06ld tid: %08x", |
1251 | realm, ret, __func__, | | 1251 | __func__, realm, ret, |
1252 | ctx->stats.num_hosts, ctx->stats.sent_packets, | | 1252 | ctx->stats.num_hosts, ctx->stats.sent_packets, |
1253 | (intmax_t)stop_time.tv_sec, | | 1253 | (intmax_t)stop_time.tv_sec, |
1254 | (long)stop_time.tv_usec, | | 1254 | (long)stop_time.tv_usec, |
1255 | (intmax_t)ctx->stats.name_resolution.tv_sec, | | 1255 | (intmax_t)ctx->stats.name_resolution.tv_sec, |
1256 | (long)ctx->stats.name_resolution.tv_usec, | | 1256 | (long)ctx->stats.name_resolution.tv_usec, |
1257 | (intmax_t)ctx->stats.krbhst.tv_sec, | | 1257 | (intmax_t)ctx->stats.krbhst.tv_sec, |
1258 | (long)ctx->stats.krbhst.tv_usec, ctx->stid); | | 1258 | (long)ctx->stats.krbhst.tv_usec, ctx->stid); |
1259 | | | 1259 | |
1260 | | | 1260 | |
1261 | if (freectx) | | 1261 | if (freectx) |
1262 | krb5_sendto_ctx_free(context, ctx); | | 1262 | krb5_sendto_ctx_free(context, ctx); |
1263 | else | | 1263 | else |
1264 | reset_context(context, ctx); | | 1264 | reset_context(context, ctx); |