Changeset 862 for trunk/server/source3/rpcclient/cmd_lsarpc.c
- Timestamp:
- May 13, 2014, 11:39:04 AM (11 years ago)
- Location:
- trunk/server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server
- Property svn:mergeinfo changed
/vendor/current merged: 860
- Property svn:mergeinfo changed
-
trunk/server/source3/rpcclient/cmd_lsarpc.c
r751 r862 324 324 uint32_t num_names; 325 325 struct lsa_String *names; 326 struct lsa_RefDomainList *domains ;326 struct lsa_RefDomainList *domains = NULL; 327 327 struct lsa_TransSidArray3 sids; 328 328 uint32_t count = 0; … … 362 362 } 363 363 364 if (sids.count != num_names) { 365 return NT_STATUS_INVALID_NETWORK_RESPONSE; 366 } 367 364 368 for (i = 0; i < sids.count; i++) { 365 369 fstring sid_str; … … 451 455 int i; 452 456 struct lsa_SidArray sids; 453 struct lsa_RefDomainList *domains ;457 struct lsa_RefDomainList *domains = NULL; 454 458 struct lsa_TransNameArray2 names; 455 459 uint32_t count = 0; … … 507 511 /* Print results */ 508 512 509 for (i = 0; i < count; i++) {513 for (i = 0; i < names.count; i++) { 510 514 fstring sid_str; 511 515 516 if (i >= sids.num_sids) { 517 break; 518 } 512 519 sid_to_fstring(sid_str, sids.sids[i].sid); 513 520 printf("%s %s (%d)\n", sid_str,
Note:
See TracChangeset
for help on using the changeset viewer.