* by request keytype list.
*/
client_key = NULL;
+ useenctype = 0;
for (i = 0; i < state->request->nktypes; i++) {
useenctype = state->request->ktype[i];
if (!krb5_c_valid_enctype(useenctype))
}
static void
-open_connection(krb5_context context, char *host, int *fd)
+open_connection(krb5_context context, char *host, int *fd_out)
{
int s;
krb5_error_code retval;
struct sockaddr_storage my_sin;
int error;
+ *fd_out = -1;
memset(&hints, 0, sizeof(hints));
hints.ai_family = PF_UNSPEC;
hints.ai_socktype = SOCK_STREAM;
}
/* We successfully connect()ed */
- *fd = s;
+ *fd_out = s;
retval = sockaddr2krbaddr(context, res->ai_family, res->ai_addr,
&receiver_addr);
if (retval != 0) {