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/utils/net_rpc.c

    r751 r862  
    16571657                goto done;
    16581658        }
     1659        if (group_rids.count != 1) {
     1660                status = NT_STATUS_INVALID_NETWORK_RESPONSE;
     1661                goto done;
     1662        }
     1663        if (name_types.count != 1) {
     1664                status = NT_STATUS_INVALID_NETWORK_RESPONSE;
     1665                goto done;
     1666        }
    16591667
    16601668        switch (name_types.ids[0])
     
    20642072                goto done;
    20652073        }
     2074        if (rids.count != 1) {
     2075                status = NT_STATUS_INVALID_NETWORK_RESPONSE;
     2076                goto done;
     2077        }
     2078        if (rid_types.count != 1) {
     2079                status = NT_STATUS_INVALID_NETWORK_RESPONSE;
     2080                goto done;
     2081        }
    20662082
    20672083        status = dcerpc_samr_OpenGroup(b, mem_ctx,
     
    23172333                d_fprintf(stderr, _("Could not lookup up group member %s\n"),
    23182334                          member);
     2335                goto done;
     2336        }
     2337        if (rids.count != 1) {
     2338                status = NT_STATUS_INVALID_NETWORK_RESPONSE;
     2339                goto done;
     2340        }
     2341        if (rid_types.count != 1) {
     2342                status = NT_STATUS_INVALID_NETWORK_RESPONSE;
    23192343                goto done;
    23202344        }
     
    28662890                        return result;
    28672891                }
    2868 
     2892                if (names.count != this_time) {
     2893                        return NT_STATUS_INVALID_NETWORK_RESPONSE;
     2894                }
     2895                if (types.count != this_time) {
     2896                        return NT_STATUS_INVALID_NETWORK_RESPONSE;
     2897                }
    28692898                /* We only have users as members, but make the output
    28702899                   the same as the output of alias members */
     
    31023131                d_fprintf(stderr, _("Couldn't find group %s\n"),
    31033132                          argv[0]);
    3104                 return result;
    3105         }
     3133                return NT_STATUS_INVALID_NETWORK_RESPONSE;
     3134        }
     3135        if (rid_types.count != 1) {
     3136                d_fprintf(stderr, _("Couldn't find group %s\n"),
     3137                          argv[0]);
     3138                return NT_STATUS_INVALID_NETWORK_RESPONSE;
     3139        }
     3140
    31063141
    31073142        if (rid_types.ids[0] == SID_NAME_DOM_GRP) {
     
    60176052                           "failed %s\n"),
    60186053                        acct_name, nt_errstr(result) );
     6054                goto done;
     6055        }
     6056        if (user_rids.count != 1) {
     6057                status = NT_STATUS_INVALID_NETWORK_RESPONSE;
     6058                goto done;
     6059        }
     6060        if (name_types.count != 1) {
     6061                status = NT_STATUS_INVALID_NETWORK_RESPONSE;
    60196062                goto done;
    60206063        }
Note: See TracChangeset for help on using the changeset viewer.