Ignore:
Timestamp:
Nov 25, 2016, 8:04:54 PM (9 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to version 4.4.7

Location:
vendor/current/source4/heimdal
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/source4/heimdal/kdc/misc.c

    r988 r989  
    4141              krb5_const_principal principal,
    4242              unsigned flags,
    43               krb5uint32 *kvno_ptr,
     43              krb5int32 *kvno_ptr,
    4444              HDB **db,
    4545              hdb_entry_ex **h)
  • vendor/current/source4/heimdal/lib/asn1/krb5.asn1

    r988 r989  
    361361EncryptedData ::= SEQUENCE {
    362362        etype[0]                ENCTYPE, -- EncryptionType
    363         kvno[1]                 krb5uint32 OPTIONAL,
     363        kvno[1]                 krb5int32 OPTIONAL,
    364364        cipher[2]               OCTET STRING -- ciphertext
    365365}
  • vendor/current/source4/heimdal/lib/krb5/mcache.c

    r988 r989  
    156156}
    157157
     158static void KRB5_CALLCONV
     159mcc_destroy_internal(krb5_context context,
     160                     krb5_mcache *m)
     161{
     162    struct link *l;
     163
     164    if (m->primary_principal != NULL) {
     165        krb5_free_principal (context, m->primary_principal);
     166        m->primary_principal = NULL;
     167    }
     168    m->dead = 1;
     169
     170    l = m->creds;
     171    while (l != NULL) {
     172        struct link *old;
     173
     174        krb5_free_cred_contents (context, &l->cred);
     175        old = l;
     176        l = l->next;
     177        free (old);
     178    }
     179
     180    m->creds = NULL;
     181    return;
     182}
     183
    158184static krb5_error_code KRB5_CALLCONV
    159185mcc_initialize(krb5_context context,
     
    162188{
    163189    krb5_mcache *m = MCACHE(id);
     190    /*
     191     * It's important to destroy any existing
     192     * creds here, that matches the baheviour
     193     * of all other backends and also the
     194     * MEMORY: backend in MIT.
     195     */
     196    mcc_destroy_internal(context, m);
    164197    m->dead = 0;
     198    m->kdc_offset = 0;
    165199    m->mtime = time(NULL);
    166200    return krb5_copy_principal (context,
     
    196230{
    197231    krb5_mcache **n, *m = MCACHE(id);
    198     struct link *l;
    199232
    200233    if (m->refcnt == 0)
     
    212245        }
    213246        HEIMDAL_MUTEX_unlock(&mcc_mutex);
    214         if (m->primary_principal != NULL) {
    215             krb5_free_principal (context, m->primary_principal);
    216             m->primary_principal = NULL;
    217         }
    218         m->dead = 1;
    219 
    220         l = m->creds;
    221         while (l != NULL) {
    222             struct link *old;
    223 
    224             krb5_free_cred_contents (context, &l->cred);
    225             old = l;
    226             l = l->next;
    227             free (old);
    228         }
    229         m->creds = NULL;
     247        mcc_destroy_internal(context, m);
    230248    }
    231249    return 0;
Note: See TracChangeset for help on using the changeset viewer.