Add DISSECTOR_ASSERT before dereferencing pointer

svn path=/trunk/; revision=30345
This commit is contained in:
Kovarththanan Rajaratnam 2009-10-05 18:45:03 +00:00
parent 94ff940129
commit 37e414a1d7
1 changed files with 3 additions and 3 deletions

View File

@ -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;