Changeset 221 for branches/samba-3.3.x/source/libsmb/libsmb_path.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_path.c
r206 r221 234 234 const char *p; 235 235 char *q, *r; 236 char *workgroup = NULL; 236 237 int len; 237 238 … … 333 334 334 335 if (strchr_m(u, ';')) { 335 char *workgroup;336 336 next_token_no_ltrim_talloc(ctx, &u, &workgroup, ";"); 337 337 if (!workgroup) { … … 395 395 (void) urldecode_talloc(ctx, pp_user, *pp_user); 396 396 (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); 397 410 398 411 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.