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

Update Samba 3.3 to 3.3.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.3.x/source/libsmb/libsmb_path.c

    r206 r221  
    234234        const char *p;
    235235        char *q, *r;
     236        char *workgroup = NULL;
    236237        int len;
    237238       
     
    333334               
    334335                if (strchr_m(u, ';')) {
    335                         char *workgroup;
    336336                        next_token_no_ltrim_talloc(ctx, &u, &workgroup, ";");
    337337                        if (!workgroup) {
     
    395395        (void) urldecode_talloc(ctx, pp_user, *pp_user);
    396396        (void) urldecode_talloc(ctx, pp_password, *pp_password);
     397
     398        if (!workgroup) {
     399                workgroup = talloc_strdup(ctx, smbc_getWorkgroup(context));
     400        }
     401        if (!workgroup) {
     402                return -1;
     403        }
     404
     405        /* set the credentials to make DFS work */
     406        smbc_set_credentials_with_fallback(context,
     407                                           workgroup,
     408                                           *pp_user,
     409                                           *pp_password);
    397410       
    398411        return 0;
Note: See TracChangeset for help on using the changeset viewer.