Null Test After Dereference at tap-megaco-common.c:63 |
No properties have been set. edit properties |
Jump to warning location ↓ | warning details... |
| |
megacostat_is_duplicate_reply (/home/sate/Testcases/c/cve/wireshark-1.2.0/tap-megaco-common.c)![]() | ||||||
![]() | ||||||
54 | megacostat_is_duplicate_reply(const gcp_cmd_t* cmd) | |||||
55 | { | |||||
56 | switch (cmd->type) { | |||||
57 | ||||||
58 | GCP_CMD_REPLY_CASE | |||||
59 | { | |||||
60 | gcp_cmd_msg_t *cmd_msg; | |||||
61 | /* cycle through commands to find same command in the transaction */ | |||||
62 | for (cmd_msg = cmd->trx->cmds; cmd_msg->cmd->msg-> != cmd->msg-> && | |||||
63 | cmd_msg != NULL; cmd_msg = cmd_msg->next) {
| |||||
64 | if (cmd_msg->cmd->type == cmd->type) | |||||
65 | return TRUE; | |||||
66 | } | |||||
67 | ||||||
68 | return FALSE; | |||||
69 | } | |||||
70 | break; | |||||
71 | default: | |||||
72 | return FALSE; | |||||
73 | break; | |||||
74 | } | |||||
75 | ||||||
76 | ||||||
77 | } | |||||
![]() |