Changeset 745 for trunk/server/source3/winbindd/winbindd_getsidaliases.c
- Timestamp:
- Nov 27, 2012, 4:43:17 PM (13 years ago)
- Location:
- trunk/server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server
- Property svn:mergeinfo changed
/vendor/current merged: 581,587,591,594,597,600,615,618,740
- Property svn:mergeinfo changed
-
trunk/server/source3/winbindd/winbindd_getsidaliases.c
r414 r745 20 20 #include "includes.h" 21 21 #include "winbindd.h" 22 #include "../libcli/security/security.h" 22 23 23 24 struct winbindd_getsidaliases_state { … … 37 38 struct winbindd_getsidaliases_state *state; 38 39 struct winbindd_domain *domain; 39 size_t num_sids;40 uint32_t num_sids; 40 41 struct dom_sid *sids; 41 42 … … 69 70 sids = NULL; 70 71 71 if ((request->extra_data.data != NULL) 72 && !parse_sidlist(state, request->extra_data.data, 73 &sids, &num_sids)) { 74 DEBUG(1, ("Could not parse SID list: %s\n", 75 request->extra_data.data)); 76 tevent_req_nterror(req, NT_STATUS_INVALID_PARAMETER); 77 return tevent_req_post(req, ev); 72 if (request->extra_data.data != NULL) { 73 if (request->extra_data.data[request->extra_len-1] != '\0') { 74 DEBUG(1, ("Got non-NULL terminated sidlist\n")); 75 tevent_req_nterror(req, NT_STATUS_INVALID_PARAMETER); 76 return tevent_req_post(req, ev); 77 } 78 if (!parse_sidlist(state, request->extra_data.data, 79 &sids, &num_sids)) { 80 DEBUG(1, ("Could not parse SID list: %s\n", 81 request->extra_data.data)); 82 tevent_req_nterror(req, NT_STATUS_INVALID_PARAMETER); 83 return tevent_req_post(req, ev); 84 } 85 } 86 87 if (DEBUGLEVEL >= 10) { 88 size_t i; 89 for (i=0; i<num_sids; i++) { 90 fstring sidstr; 91 sid_to_fstring(sidstr, &sids[i]); 92 DEBUGADD(10, ("%s\n", sidstr)); 93 } 78 94 } 79 95 … … 97 113 &state->aliases); 98 114 TALLOC_FREE(subreq); 99 if (!NT_STATUS_IS_OK(status)) { 100 tevent_req_nterror(req, status); 115 if (tevent_req_nterror(req, status)) { 101 116 return; 102 117 }
Note:
See TracChangeset
for help on using the changeset viewer.