Ignore:
Timestamp:
Nov 27, 2012, 4:43:17 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: updated trunk to 3.6.0

Location:
trunk/server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/server

  • trunk/server/source3/winbindd/wb_gettoken.c

    r596 r745  
    2020#include "includes.h"
    2121#include "winbindd.h"
    22 #include "librpc/gen_ndr/cli_wbint.h"
     22#include "librpc/gen_ndr/ndr_wbint_c.h"
     23#include "../libcli/security/security.h"
     24#include "passdb/machine_sid.h"
    2325
    2426struct wb_gettoken_state {
     
    8991                                          &state->sids);
    9092        TALLOC_FREE(subreq);
    91         if (!NT_STATUS_IS_OK(status)) {
    92                 tevent_req_nterror(req, status);
     93        if (tevent_req_nterror(req, status)) {
    9394                return;
    9495        }
     
    134135        status = wb_lookupuseraliases_recv(subreq, state, &num_rids, &rids);
    135136        TALLOC_FREE(subreq);
    136         if (!NT_STATUS_IS_OK(status)) {
    137                 tevent_req_nterror(req, status);
     137        if (tevent_req_nterror(req, status)) {
    138138                return;
    139139        }
    140140        domain = find_domain_from_sid_noinit(get_global_sam_sid());
     141        if (domain == NULL) {
     142                tevent_req_nterror(req, NT_STATUS_INTERNAL_ERROR);
     143                return;
     144        }
    141145        if (!wb_add_rids_to_sids(state, &state->num_sids, &state->sids,
    142146                                 &domain->sid, num_rids, rids)) {
     
    176180        status = wb_lookupuseraliases_recv(subreq, state, &num_rids, &rids);
    177181        TALLOC_FREE(subreq);
    178         if (!NT_STATUS_IS_OK(status)) {
    179                 tevent_req_nterror(req, status);
     182        if (tevent_req_nterror(req, status)) {
    180183                return;
    181184        }
Note: See TracChangeset for help on using the changeset viewer.