Ignore:
Timestamp:
Nov 14, 2012, 12:59:34 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to 3.6.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/lib/util/idtree.c

    r414 r740  
    105105        int n, m, sh;
    106106        struct idr_layer *p, *pn;
    107         struct idr_layer *pa[MAX_LEVEL];
    108         int l, id, oid;
     107        struct idr_layer *pa[MAX_LEVEL+1];
     108        unsigned int l, id, oid;
    109109        uint32_t bm;
    110110
     
    241241{
    242242        struct idr_layer *p = idp->top;
    243         struct idr_layer **pa[MAX_LEVEL];
     243        struct idr_layer **pa[1+MAX_LEVEL];
    244244        struct idr_layer ***paa = &pa[0];
    245245        int n;
     
    281281         * present.  If so, tain't one of ours!
    282282         */
    283         if ((id & ~(~0 << MAX_ID_SHIFT)) >> (n + IDR_BITS))
    284              return NULL;
     283        if (n + IDR_BITS < 31 &&
     284            ((id & ~(~0 << MAX_ID_SHIFT)) >> (n + IDR_BITS))) {
     285                return NULL;
     286        }
    285287
    286288        /* Mask off upper bits we don't use for the search. */
Note: See TracChangeset for help on using the changeset viewer.