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_server.c

    r206 r221  
    239239{
    240240        SMBCSRV *srv=NULL;
     241        char *workgroup = NULL;
    241242        struct cli_state *c;
    242243        struct nmb_name called, calling;
     
    360361               
    361362                /* ... then we're done here.  Give 'em what they came for. */
    362                 return srv;
     363                goto done;
    363364        }
    364365       
     
    599600       
    600601        DLIST_ADD(context->internal->servers, srv);
     602done:
     603        if (!pp_workgroup || !*pp_workgroup || !**pp_workgroup) {
     604                workgroup = talloc_strdup(ctx, smbc_getWorkgroup(context));
     605        } else {
     606                workgroup = *pp_workgroup;
     607        }
     608        if(!workgroup) {
     609                return NULL;
     610        }
     611       
     612        /* set the credentials to make DFS work */
     613        smbc_set_credentials_with_fallback(context,
     614                                           workgroup,
     615                                           *pp_username,
     616                                           *pp_password);
     617       
    601618        return srv;
    602619       
Note: See TracChangeset for help on using the changeset viewer.