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/winbind/wb_async_helpers.c

    r740 r860  
    121121        }
    122122
     123        if (state->names.count != state->num_sids) {
     124                composite_error(state->ctx,
     125                                NT_STATUS_INVALID_NETWORK_RESPONSE);
     126                return;
     127        }
     128
    123129        state->result = talloc_array(state, struct wb_sid_object *,
    124130                                     state->num_sids);
     
    141147                }
    142148
     149                if (domains == NULL) {
     150                        composite_error(state->ctx,
     151                                        NT_STATUS_INVALID_NETWORK_RESPONSE);
     152                        return;
     153                }
    143154                if (name->sid_index >= domains->count) {
    144155                        composite_error(state->ctx,
    145                                         NT_STATUS_INVALID_PARAMETER);
     156                                        NT_STATUS_INVALID_NETWORK_RESPONSE);
    146157                        return;
    147158                }
     
    273284        }
    274285
     286        if (state->sids.count != state->num_names) {
     287                composite_error(state->ctx,
     288                                NT_STATUS_INVALID_NETWORK_RESPONSE);
     289                return;
     290        }
     291
    275292        state->result = talloc_array(state, struct wb_sid_object *,
    276293                                     state->num_names);
     
    291308                }
    292309
     310                if (domains == NULL) {
     311                        composite_error(state->ctx,
     312                                        NT_STATUS_INVALID_NETWORK_RESPONSE);
     313                        return;
     314                }
    293315                if (sid->sid_index >= domains->count) {
    294316                        composite_error(state->ctx,
    295                                         NT_STATUS_INVALID_PARAMETER);
     317                                        NT_STATUS_INVALID_NETWORK_RESPONSE);
    296318                        return;
    297319                }
Note: See TracChangeset for help on using the changeset viewer.