(kadm_connect): clear error string before trying to print a errno,

this way we don't pick up a random failure code


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19197 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-11-30 17:15:37 +00:00
parent 7690122914
commit b8ee799cba

View File

@@ -385,6 +385,7 @@ kadm_connect(kadm5_client_context *ctx)
if (s < 0)
continue;
if (connect (s, a->ai_addr, a->ai_addrlen) < 0) {
krb5_clear_error_string(context);
krb5_warn (context, errno, "connect(%s)", hostname);
close (s);
continue;