Ignore:
Timestamp:
May 27, 2009, 11:39:15 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update 3.2 branch to 3.2.9

Location:
branches/samba-3.2.x/source/libads
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.2.x/source/libads/kerberos.c

    r228 r233  
    536536  out:
    537537
    538         if (princ) {
    539                 krb5_free_principal(ctx, princ);
    540         }
    541         if (cc) {
    542                 krb5_cc_close(ctx, cc);
    543         }
    544538        if (ctx) {
     539                if (princ) {
     540                        krb5_free_principal(ctx, princ);
     541                }
     542                if (cc) {
     543                        krb5_cc_close(ctx, cc);
     544                }
    545545                krb5_free_context(ctx);
    546546        }
  • branches/samba-3.2.x/source/libads/krb5_errs.c

    r133 r233  
    3131        {KRB5KDC_ERR_C_PRINCIPAL_UNKNOWN, NT_STATUS_INVALID_ACCOUNT_NAME},
    3232        {KRB5KDC_ERR_ETYPE_NOSUPP, NT_STATUS_LOGON_FAILURE},
    33 #if defined(KRB5KDC_ERR_KEY_EXPIRED) /* Heimdal */
     33#if defined(KRB5KDC_ERR_KEY_EXP) /* MIT */
     34        {KRB5KDC_ERR_KEY_EXP, NT_STATUS_PASSWORD_EXPIRED},
     35#else /* old Heimdal releases have it with different name only in an enum: */
    3436        {KRB5KDC_ERR_KEY_EXPIRED, NT_STATUS_PASSWORD_EXPIRED},
    35 #elif defined(KRB5KDC_ERR_KEY_EXP) /* MIT */
    36         {KRB5KDC_ERR_KEY_EXP, NT_STATUS_PASSWORD_EXPIRED},
    37 #else
    38 #error Neither KRB5KDC_ERR_KEY_EXPIRED nor KRB5KDC_ERR_KEY_EXP available
    3937#endif
    4038        {25, NT_STATUS_PASSWORD_EXPIRED}, /* FIXME: bug in heimdal 0.7 krb5_get_init_creds_password (Inappropriate ioctl for device (25)) */
  • branches/samba-3.2.x/source/libads/ldap.c

    r232 r233  
    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",
  • branches/samba-3.2.x/source/libads/ldap_printer.c

    r133 r233  
    302302                DEBUG(3, ("Unable to open printer %s, error is %s.\n",
    303303                          printername, dos_errstr(result)));
     304                SAFE_FREE(printername);
    304305                return result;
    305306        }
    306307       
    307         if ( !(dsdriver_ctr = TALLOC_ZERO_P( mem_ctx, REGVAL_CTR )) )
     308        if ( !(dsdriver_ctr = TALLOC_ZERO_P( mem_ctx, REGVAL_CTR )) ) {
     309                SAFE_FREE(printername);
    308310                return WERR_NOMEM;
     311        }
    309312
    310313        result = rpccli_spoolss_enumprinterdataex(cli, mem_ctx, &pol, SPOOL_DSDRIVER_KEY, dsdriver_ctr);
     
    322325        }
    323326       
    324         if ( !(dsspooler_ctr = TALLOC_ZERO_P( mem_ctx, REGVAL_CTR )) )
     327        if ( !(dsspooler_ctr = TALLOC_ZERO_P( mem_ctx, REGVAL_CTR )) ) {
     328                SAFE_FREE(printername);
    325329                return WERR_NOMEM;
     330        }
    326331
    327332        result = rpccli_spoolss_enumprinterdataex(cli, mem_ctx, &pol, SPOOL_DSSPOOLER_KEY, dsspooler_ctr);
     
    344349
    345350        rpccli_spoolss_close_printer(cli, mem_ctx, &pol);
     351        SAFE_FREE(printername);
    346352
    347353        return result;
Note: See TracChangeset for help on using the changeset viewer.