#include <glib.h>
#include <ctype.h>
#include <epan/packet.h>
-#include "smb.h"
+#include <epan/emem.h>
+#include <epan/dissectors/packet-smb.h>
#include "packet-smb-pipe.h"
#include "packet-smb-browse.h"
#include "packet-smb-common.h"
/*
* Save the parameter descriptor for future use.
*/
- g_assert(trp->param_descrip == NULL);
+ DISSECTOR_ASSERT(trp->param_descrip == NULL);
trp->param_descrip = g_strdup(param_descrip);
}
offset += descriptor_len;
/*
* Save the return descriptor for future use.
*/
- g_assert(trp->data_descrip == NULL);
+ DISSECTOR_ASSERT(trp->data_descrip == NULL);
trp->data_descrip = g_strdup(data_descrip);
}
offset += descriptor_len;
* Save the auxiliary data descriptor for
* future use.
*/
- g_assert(trp->aux_data_descrip == NULL);
+ DISSECTOR_ASSERT(trp->aux_data_descrip == NULL);
trp->aux_data_descrip =
g_strdup(aux_data_descrip);
}
guint32 hash_key;
fragment_data *fd_head;
tvbuff_t *new_tvb;
+ proto_item *frag_tree_item;
pinfo->dcetransportsalt = fid;
/* list what segments we have */
show_fragment_tree(fd_head, &smb_pipe_frag_items,
- tree, pinfo, d_tvb);
+ tree, pinfo, d_tvb, &frag_tree_item);
/* dissect the full PDU */
result = dissector_try_heuristic(smb_transact_heur_subdissector_list, d_tvb, pinfo, parent_tree);
/* list what segments we have */
show_fragment_tree(fd_head, &smb_pipe_frag_items,
- tree, pinfo, d_tvb);
+ tree, pinfo, d_tvb, &frag_tree_item);
/* dissect the full PDU */
result = dissector_try_heuristic(smb_transact_heur_subdissector_list, d_tvb, pinfo, parent_tree);