Changeset 221 for branches/samba-3.3.x/source/libsmb/libsmb_server.c
- Timestamp:
- May 24, 2009, 7:17:10 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.3.x/source/libsmb/libsmb_server.c
r206 r221 239 239 { 240 240 SMBCSRV *srv=NULL; 241 char *workgroup = NULL; 241 242 struct cli_state *c; 242 243 struct nmb_name called, calling; … … 360 361 361 362 /* ... then we're done here. Give 'em what they came for. */ 362 return srv;363 goto done; 363 364 } 364 365 … … 599 600 600 601 DLIST_ADD(context->internal->servers, srv); 602 done: 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 601 618 return srv; 602 619
Note:
See TracChangeset
for help on using the changeset viewer.