(krb5_destroy): free the correct part of the context
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7413 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -68,7 +68,7 @@ krb5_destroy (kx_context *c)
|
||||
krb5_free_principal (kc->context, kc->client);
|
||||
if (kc->context)
|
||||
krb5_free_context (kc->context);
|
||||
free (kc->context);
|
||||
free (kc);
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -84,7 +84,7 @@ krb5_authenticate (kx_context *kc, int s)
|
||||
krb5_auth_context auth_context = NULL;
|
||||
krb5_error_code ret;
|
||||
krb5_principal server;
|
||||
char *host = kc->host;
|
||||
const char *host = kc->host;
|
||||
|
||||
ret = krb5_sname_to_principal (context,
|
||||
host, "host", KRB5_NT_SRV_HST, &server);
|
||||
|
Reference in New Issue
Block a user