forked from osmocom/wireshark
Add DISSECTOR_ASSERT before dereferencing pointer
svn path=/trunk/; revision=30345
This commit is contained in:
parent
94ff940129
commit
37e414a1d7
|
@ -168,9 +168,7 @@ gcp_trx_t* gcp_trx(gcp_msg_t* m ,guint32 t_id , gcp_trx_type_t type, gboolean ke
|
|||
return trxmsg->trx;
|
||||
}
|
||||
}
|
||||
|
||||
DISSECTOR_ASSERT(! "a trx that should exist does not!" );
|
||||
|
||||
DISSECTOR_ASSERT_NOT_REACHED();
|
||||
} else {
|
||||
emem_tree_key_t key[] = {
|
||||
{1,&(m->hi_addr)},
|
||||
|
@ -215,6 +213,8 @@ gcp_trx_t* gcp_trx(gcp_msg_t* m ,guint32 t_id , gcp_trx_type_t type, gboolean ke
|
|||
t->cmds = NULL;
|
||||
}
|
||||
|
||||
DISSECTOR_ASSERT(trxmsg);
|
||||
|
||||
trxmsg->trx = t;
|
||||
trxmsg->next = NULL;
|
||||
trxmsg->last = trxmsg;
|
||||
|
|
Loading…
Reference in New Issue