From f93d963198c2b98e02fa279b39b01772e88b2259 Mon Sep 17 00:00:00 2001
From: Nalin Dahyabhai <nalin@dahyabhai.net>
Date: Tue, 11 Mar 2014 13:26:32 -0400
Subject: [PATCH 3/4] Handlers won't take care of initializing 'err'
We can get an KRB5_KDC_UNREACH error back without processing a server
reply first, so we should go ahead and initialize err for that case.
---
src/lib/krb5/os/sendto_kdc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lib/krb5/os/sendto_kdc.c b/src/lib/krb5/os/sendto_kdc.c
index 828bfff..23b2162 100644
--- a/src/lib/krb5/os/sendto_kdc.c
+++ b/src/lib/krb5/os/sendto_kdc.c
@@ -166,7 +166,7 @@ krb5_sendto_kdc(krb5_context context, const krb5_data *message,
const krb5_data *realm, krb5_data *reply, int *use_master,
int tcp_only)
{
- krb5_error_code retval, err;
+ krb5_error_code retval, err = 0;
struct serverlist servers;
int socktype1 = 0, socktype2 = 0, server_used;
--
1.9.0