Ignore:
Timestamp:
Oct 30, 2009, 9:39:05 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update 3.3 to 3.3.9

File:
1 edited

Legend:

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

    r222 r342  
    656656        const char *signing_state = "off";
    657657       
    658         if (!context ||
    659             ! workgroup || ! *workgroup ||
    660             ! user || ! *user ||
    661             ! password || ! *password) {
     658        if (! context) {
    662659           
    663660                return;
    664661        }
    665662
     663        if (! workgroup || ! *workgroup) {
     664                workgroup = smbc_getWorkgroup(context);
     665        }
     666
     667        if (! user) {
     668                user = smbc_getUser(context);
     669        }
     670
     671        if (! password) {
     672                password = "";
     673        }
     674
    666675        if (smbc_getOptionUseKerberos(context)) {
    667676                use_kerberos = True;
Note: See TracChangeset for help on using the changeset viewer.