Ignore:
Timestamp:
May 12, 2014, 8:58:38 PM (11 years ago)
Author:
Silvan Scherrer
Message:

Samba 3.6: updated vendor to latest version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/source4/libnet/userman.c

    r740 r860  
    237237        /* what to do when there's no user account to delete
    238238           and what if there's more than one rid resolved */
    239         if (!s->lookupname.out.rids->count) {
    240                 c->status = NT_STATUS_NO_SUCH_USER;
    241                 composite_error(c, c->status);
    242                 return;
    243 
    244         } else if (!s->lookupname.out.rids->count > 1) {
    245                 c->status = NT_STATUS_INVALID_ACCOUNT_NAME;
    246                 composite_error(c, c->status);
     239        if (s->lookupname.out.rids->count != s->lookupname.in.num_names) {
     240                composite_error(c, NT_STATUS_INVALID_NETWORK_RESPONSE);
     241                return;
     242        }
     243        if (s->lookupname.out.types->count != s->lookupname.in.num_names) {
     244                composite_error(c, NT_STATUS_INVALID_NETWORK_RESPONSE);
    247245                return;
    248246        }
     
    512510        /* what to do when there's no user account to delete
    513511           and what if there's more than one rid resolved */
    514         if (!s->lookupname.out.rids->count) {
    515                 c->status = NT_STATUS_NO_SUCH_USER;
    516                 composite_error(c, c->status);
    517                 return;
    518 
    519         } else if (!s->lookupname.out.rids->count > 1) {
    520                 c->status = NT_STATUS_INVALID_ACCOUNT_NAME;
    521                 composite_error(c, c->status);
     512        if (s->lookupname.out.rids->count != s->lookupname.in.num_names) {
     513                composite_error(c, NT_STATUS_INVALID_NETWORK_RESPONSE);
     514                return;
     515        }
     516        if (s->lookupname.out.types->count != s->lookupname.in.num_names) {
     517                composite_error(c, NT_STATUS_INVALID_NETWORK_RESPONSE);
    522518                return;
    523519        }
Note: See TracChangeset for help on using the changeset viewer.