Ignore:
Timestamp:
May 24, 2009, 7:17:10 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update Samba 3.3 to 3.3.1

Location:
branches/samba-3.3.x/source/libads
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.3.x/source/libads/ldap.c

    r206 r221  
    300300                got_realm = True;
    301301
     302 again:
     303
    302304        /* we need to try once with the realm name and fallback to the
    303305           netbios domain name if we fail (if netbios has not been disabled */
     
    350352
    351353        sitename = sitename_fetch(realm);
    352 
    353  again:
    354354
    355355        DEBUG(6,("ads_find_dc: (cldap) looking for %s '%s'\n",
     
    673673        ldap_set_option(ads->ldap.ld, LDAP_OPT_PROTOCOL_VERSION, &version);
    674674
    675         status = ADS_ERROR(smb_ldap_start_tls(ads->ldap.ld, version));
    676         if (!ADS_ERR_OK(status)) {
    677                 goto out;
     675        if ( lp_ldap_ssl_ads() ) {
     676                status = ADS_ERROR(smb_ldap_start_tls(ads->ldap.ld, version));
     677                if (!ADS_ERR_OK(status)) {
     678                        goto out;
     679                }
    678680        }
    679681
  • branches/samba-3.3.x/source/libads/ldap_printer.c

    r206 r221  
    329329                DEBUG(3, ("Unable to open printer %s, error is %s.\n",
    330330                          printername, dos_errstr(result)));
     331                SAFE_FREE(printername);
    331332                return result;
    332333        }
    333334       
    334         if ( !(dsdriver_ctr = TALLOC_ZERO_P( mem_ctx, REGVAL_CTR )) )
     335        if ( !(dsdriver_ctr = TALLOC_ZERO_P( mem_ctx, REGVAL_CTR )) ) {
     336                SAFE_FREE(printername);
    335337                return WERR_NOMEM;
     338        }
    336339
    337340        result = rpccli_spoolss_enumprinterdataex(cli, mem_ctx, &pol, SPOOL_DSDRIVER_KEY, dsdriver_ctr);
     
    349352        }
    350353       
    351         if ( !(dsspooler_ctr = TALLOC_ZERO_P( mem_ctx, REGVAL_CTR )) )
     354        if ( !(dsspooler_ctr = TALLOC_ZERO_P( mem_ctx, REGVAL_CTR )) ) {
     355                SAFE_FREE(printername);
    352356                return WERR_NOMEM;
     357        }
    353358
    354359        result = rpccli_spoolss_enumprinterdataex(cli, mem_ctx, &pol, SPOOL_DSSPOOLER_KEY, dsspooler_ctr);
     
    371376
    372377        rpccli_spoolss_close_printer(cli, mem_ctx, &pol);
     378        SAFE_FREE(printername);
    373379
    374380        return result;
Note: See TracChangeset for help on using the changeset viewer.