Changeset 860 for vendor/current/source4/libnet/userman.c
- Timestamp:
- May 12, 2014, 8:58:38 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/source4/libnet/userman.c
r740 r860 237 237 /* what to do when there's no user account to delete 238 238 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); 247 245 return; 248 246 } … … 512 510 /* what to do when there's no user account to delete 513 511 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); 522 518 return; 523 519 }
Note:
See TracChangeset
for help on using the changeset viewer.