(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-dcerpc-nt.c) |
| |
| 1245 | | | dissect_ndr_nt_SID(tvbuff_t *tvb, int offset, packet_info *pinfo, |
| 1246 | | | proto_tree *tree, guint8 *drep) |
| 1247 | | | { |
| 1248 | | | dcerpc_info *di = (dcerpc_info *)pinfo->private_data; |
| 1249 | | | dcerpc_call_value *dcv = (dcerpc_call_value *)di->call_data; |
| 1250 | | | char *sid_str=NULL; |
| 1251 | | | const char *name; |
| 1252 | | | |
| 1253 | | | if(di->hf_index!=-1){ |
| 1254 | | | name=proto_registrar_get_name(di->hf_index); |
Ignored Return Value
The return value of proto_registrar_get_name() is never checked in the highlighted execution scenario. - If the return value can indicate an error, the error will be ignored if the highlighted code executes.
- The return value of proto_registrar_get_name() is checked 98% of the time in this project. CodeSonar is configured to enforce Ignored Return Value checks for any function whose return value is checked at least 96% of the time, unless the function is used fewer than 20 times. (To modify these thresholds, use configuration file parameters RETURN_CHECKER_SAMPLE_SIZE and RETURN_CHECKER_RATIO. To exempt proto_registrar_get_name() from the Ignored Return Value check, use configuration file parameter RETURN_CHECKER_IGNORED_FUNCS).
Show: All events | Only primary events |
|
| 1255 | | | } else { |
| 1256 | | | name="Domain"; |
| 1257 | | | } |
| 1258 | | | if(di->conformant_run){ |
Event 2:
Taking true branch. di->conformant_run evaluates to true.
hide
|
|
| 1259 | | | |
| 1260 | | | return offset; |
| 1261 | | | } |
| 1262 | | | |
| 1263 | | | |
| 1264 | | | |
| 1265 | | | |
| 1266 | | | offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep, |
| 1267 | | | hf_nt_count, NULL); |
| 1268 | | | |
| 1269 | | | offset = dissect_nt_sid(tvb, offset, tree, name, &sid_str, |
| 1270 | | | hf_nt_domain_sid); |
| 1271 | | | |
| 1272 | | | |
| 1273 | | | |
| 1274 | | | |
| 1275 | | | if(dcv){ |
| 1276 | | | dcv->private_data = sid_str; |
| 1277 | | | } |
| 1278 | | | |
| 1279 | | | return offset; |
| 1280 | | | } |
| |