Changeset 491 for branches/samba-3.3.x/source
- Timestamp:
- Sep 16, 2010, 10:06:10 AM (15 years ago)
- Location:
- branches/samba-3.3.x/source
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.3.x/source/VERSION
r467 r491 26 26 SAMBA_VERSION_MAJOR=3 27 27 SAMBA_VERSION_MINOR=3 28 SAMBA_VERSION_RELEASE=1 328 SAMBA_VERSION_RELEASE=14 29 29 30 30 ######################################################## -
branches/samba-3.3.x/source/lib/util_sid.c
r206 r491 409 409 sid->sid_rev_num = CVAL(inbuf, 0); 410 410 sid->num_auths = CVAL(inbuf, 1); 411 if (sid->num_auths > MAXSUBAUTHS) { 412 return false; 413 } 411 414 memcpy(sid->id_auth, inbuf+2, 6); 412 415 if (len < 8 + sid->num_auths*4) -
branches/samba-3.3.x/source/libads/ldap.c
r224 r491 2140 2140 DOM_SID sid; 2141 2141 fstring tmp; 2142 sid_parse(values[i]->bv_val, values[i]->bv_len, &sid); 2142 if (!sid_parse(values[i]->bv_val, values[i]->bv_len, &sid)) { 2143 continue; 2144 } 2143 2145 printf("%s: %s\n", field, sid_to_fstring(tmp, &sid)); 2144 2146 } -
branches/samba-3.3.x/source/libsmb/cliquota.c
r206 r491 118 118 #endif /* LARGE_SMB_OFF_T */ 119 119 120 sid_parse(rdata+40,sid_len,&qt.sid); 120 if (!sid_parse(rdata+40,sid_len,&qt.sid)) { 121 return false; 122 } 121 123 122 124 qt.qtype = SMB_USER_QUOTA_TYPE; -
branches/samba-3.3.x/source/smbd/nttrans.c
r370 r491 1951 1951 /*unknown = IVAL(pdata,0);*/ 1952 1952 1953 sid_parse(pdata+4,sid_len,&sid); 1953 if (!sid_parse(pdata+4,sid_len,&sid)) { 1954 reply_nterror(req, NT_STATUS_INVALID_PARAMETER); 1955 return; 1956 } 1957 1954 1958 DEBUGADD(10, ("for SID: %s\n", sid_string_dbg(&sid))); 1955 1959 … … 2207 2211 } 2208 2212 2209 sid_parse(pdata+8,sid_len,&sid); 2213 if (!sid_parse(pdata+8,sid_len,&sid)) { 2214 reply_nterror(req, NT_STATUS_INVALID_PARAMETER); 2215 return; 2216 } 2210 2217 2211 2218 if (vfs_get_ntquota(fsp, SMB_USER_QUOTA_TYPE, &sid, &qt)!=0) { … … 2388 2395 #endif /* LARGE_SMB_OFF_T */ 2389 2396 2390 sid_parse(pdata+40,sid_len,&sid); 2397 if (!sid_parse(pdata+40,sid_len,&sid)) { 2398 reply_nterror(req, NT_STATUS_INVALID_PARAMETER); 2399 return; 2400 } 2401 2391 2402 DEBUGADD(8,("SID: %s\n", sid_string_dbg(&sid))); 2392 2403
Note:
See TracChangeset
for help on using the changeset viewer.