~ubuntu-branches/ubuntu/maverick/krb5/maverick

« back to all changes in this revision

Viewing changes to src/lib/krb5/os/realm_dom.c

  • Committer: Bazaar Package Importer
  • Author(s): Sam Hartman
  • Date: 2009-05-07 16:16:34 UTC
  • mfrom: (13.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20090507161634-xqyk0s9na0le4flj
Tags: 1.7dfsg~beta1-4
When  decrypting the TGS response fails with the subkey, try with the
session key to work around Heimdal bug, Closes: #527353 

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
    krb5_error_code retval;
52
52
    char *temp_domain = 0;
53
53
 
54
 
    retval = profile_get_string(context->profile, "realms", realm,
55
 
                               "default_domain", realm, &temp_domain);
 
54
    retval = profile_get_string(context->profile, KRB5_CONF_REALMS, realm,
 
55
                               KRB5_CONF_DEFAULT_DOMAIN, realm, &temp_domain);
56
56
    if (!retval && temp_domain)
57
57
    {
58
 
        *domain = malloc(strlen(temp_domain) + 1);
 
58
        *domain = strdup(temp_domain);
59
59
        if (!*domain) {
60
60
            retval = ENOMEM;
61
 
        } else {
62
 
            strcpy(*domain, temp_domain);
63
61
        }
64
62
        profile_release_string(temp_domain);
65
63
    }