Ignore:
Timestamp:
May 13, 2014, 11:39:04 AM (11 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update trunk to 3.6.23

Location:
trunk/server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/server

  • trunk/server/source3/rpcclient/cmd_lsarpc.c

    r751 r862  
    324324        uint32_t num_names;
    325325        struct lsa_String *names;
    326         struct lsa_RefDomainList *domains;
     326        struct lsa_RefDomainList *domains = NULL;
    327327        struct lsa_TransSidArray3 sids;
    328328        uint32_t count = 0;
     
    362362        }
    363363
     364        if (sids.count != num_names) {
     365                return NT_STATUS_INVALID_NETWORK_RESPONSE;
     366        }
     367
    364368        for (i = 0; i < sids.count; i++) {
    365369                fstring sid_str;
     
    451455        int i;
    452456        struct lsa_SidArray sids;
    453         struct lsa_RefDomainList *domains;
     457        struct lsa_RefDomainList *domains = NULL;
    454458        struct lsa_TransNameArray2 names;
    455459        uint32_t count = 0;
     
    507511        /* Print results */
    508512
    509         for (i = 0; i < count; i++) {
     513        for (i = 0; i < names.count; i++) {
    510514                fstring sid_str;
    511515
     516                if (i >= sids.num_sids) {
     517                        break;
     518                }
    512519                sid_to_fstring(sid_str, sids.sids[i].sid);
    513520                printf("%s %s (%d)\n", sid_str,
Note: See TracChangeset for help on using the changeset viewer.