(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-pres.c) |
| |
| 1404 | | | dissect_pres(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree) |
| 1405 | | | { |
| 1406 | | | int offset = 0, old_offset; |
| 1407 | | | |
| 1408 | | | |
| 1409 | | | |
| 1410 | [+] | | if (!tvb_bytes_exist(tvb, 0, 4)){ |
 |
| 1411 | | | session = ((struct SESSION_DATA_STRUCTURE*)(pinfo->private_data)); |
| 1412 | | | if (session && session->spdu_type != SES_MAJOR_SYNC_POINT) { |
| 1413 | | | proto_tree_add_text(parent_tree, tvb, offset, |
| 1414 | | | tvb_reported_length_remaining(tvb,offset),"User data"); |
| 1415 | | | return; |
| 1416 | | | } |
| 1417 | | | } |
| 1418 | | | |
| 1419 | | | |
| 1420 | | | |
| 1421 | | | |
| 1422 | [+] | | if (check_col(pinfo->cinfo, COL_PROTOCOL)) |
 |
| 1423 | | | col_set_str(pinfo->cinfo, COL_PROTOCOL, "PRES"); |
| 1424 | [+] | | if (check_col(pinfo->cinfo, COL_INFO)) |
 |
| 1425 | | | col_clear(pinfo->cinfo, COL_INFO); |
| 1426 | | | |
| 1427 | | | global_tree = parent_tree; |
| 1428 | | | global_pinfo = pinfo; |
| 1429 | | | |
| 1430 | | | if (session && session->spdu_type == SES_MAJOR_SYNC_POINT) { |
Event 11:
Skipping " if". session evaluates to false.
hide
Event 12:
Considering the case where session is equal to 0.
hide
|
|
| 1431 | | | |
| 1432 | | | char *oid = find_oid_by_pres_ctx_id (pinfo, session->pres_ctx_id); |
| 1433 | | | if (oid) { |
| 1434 | | | call_ber_oid_callback (oid, tvb, offset, pinfo, parent_tree); |
| 1435 | | | } else { |
| 1436 | | | proto_tree_add_text(parent_tree, tvb, offset, |
| 1437 | | | tvb_reported_length_remaining(tvb,offset),"User data"); |
| 1438 | | | } |
| 1439 | | | return; |
| 1440 | | | } |
| 1441 | | | |
| 1442 | [+] | | while (tvb_reported_length_remaining(tvb, offset) > 0){ |
 |
| 1443 | | | old_offset = offset; |
| 1444 | [+] | | offset = dissect_ppdu(tvb, offset, pinfo, parent_tree); |
 |
| |