call freehostent

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6756 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1999-08-05 12:22:09 +00:00
parent 3b5d22066c
commit 538358295d
2 changed files with 8 additions and 5 deletions

View File

@@ -52,10 +52,6 @@ proto (int sock, const char *hostname, const char *service)
krb5_data packet;
u_int32_t len, net_len;
status = krb5_init_context(&context);
if (status)
krb5_err (context, 1, status, "krb5_init_context");
status = krb5_auth_con_init (context, &auth_context);
if (status)
krb5_err (context, 1, status, "krb5_auth_con_init");
@@ -170,8 +166,10 @@ doit (const char *hostname, int port, const char *service)
close (s);
continue;
}
freehostent (hostent);
return proto (s, hostname, service);
}
freehostent (hostent);
return 1;
}