char* -> krb5_realm
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2971 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -58,7 +58,7 @@ domain_match (const char *s, const char *pattern)
|
|||||||
krb5_error_code
|
krb5_error_code
|
||||||
krb5_get_host_realm(krb5_context context,
|
krb5_get_host_realm(krb5_context context,
|
||||||
const char *host,
|
const char *host,
|
||||||
char ***realms)
|
krb5_realm **realms)
|
||||||
{
|
{
|
||||||
krb5_error_code ret;
|
krb5_error_code ret;
|
||||||
char hostname[MAXHOSTNAMELEN];
|
char hostname[MAXHOSTNAMELEN];
|
||||||
@@ -81,7 +81,7 @@ krb5_get_host_realm(krb5_context context,
|
|||||||
if (hostent != NULL)
|
if (hostent != NULL)
|
||||||
host = hostent->h_name;
|
host = hostent->h_name;
|
||||||
|
|
||||||
*realms = malloc(2 * sizeof(char*));
|
*realms = malloc(2 * sizeof(krb5_realm));
|
||||||
if (*realms == NULL)
|
if (*realms == NULL)
|
||||||
return ENOMEM;
|
return ENOMEM;
|
||||||
(*realms)[0] = NULL;
|
(*realms)[0] = NULL;
|
||||||
|
Reference in New Issue
Block a user