Ignore:
Timestamp:
Aug 5, 2009, 6:34:45 PM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update 3.0 to final 3.0.36 (source)

Location:
branches/samba-3.0/source/libads
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.0/source/libads/cldap.c

    r22 r312  
    6161                                followed_ptr = 1;
    6262                        }
    63                         len = ((ptr[0] & 0x3f) << 8) | ptr[1];
     63                        len = ((ptr[0] & 0x3f) << 8) | (uint8) ptr[1];
    6464                        ptr = data + len;
    6565                } else if (*ptr) {
  • branches/samba-3.0/source/libads/ldap.c

    r165 r312  
    113113                return LDAP_TIMELIMIT_EXCEEDED;
    114114
     115
     116        /*
     117         * A bug in OpenLDAP means ldap_search_ext_s can return
     118         * LDAP_SUCCESS but with a NULL res pointer. Cope with
     119         * this. See bug #6279 for details. JRA.
     120         */
     121
     122        if (*res == NULL) {
     123                return LDAP_TIMELIMIT_EXCEEDED;
     124        }
     125
    115126        return result;
    116127}
     
    276287                got_realm = True;
    277288                   
     289 again:
     290
    278291        /* we need to try once with the realm name and fallback to the
    279292           netbios domain name if we fail (if netbios has not been disabled */
     
    326339
    327340        sitename = sitename_fetch(realm);
    328 
    329  again:
    330341
    331342        DEBUG(6,("ads_find_dc: (cldap) looking for %s '%s'\n",
Note: See TracChangeset for help on using the changeset viewer.