summaryrefslogtreecommitdiff
path: root/asn1/nbap/nbap.cnf
diff options
context:
space:
mode:
Diffstat (limited to 'asn1/nbap/nbap.cnf')
-rw-r--r--asn1/nbap/nbap.cnf7
1 files changed, 5 insertions, 2 deletions
diff --git a/asn1/nbap/nbap.cnf b/asn1/nbap/nbap.cnf
index 830660db5f..d5c12c98f2 100644
--- a/asn1/nbap/nbap.cnf
+++ b/asn1/nbap/nbap.cnf
@@ -1243,7 +1243,7 @@ dch_id = 0xFFFFFFFF;
#.FN_BODY RL-Specific-E-DCH-Information-Item
address dst_addr, null_addr;
conversation_t *conversation;
-umts_fp_conversation_info_t *umts_fp_conversation_info;
+umts_fp_conversation_info_t *umts_fp_conversation_info = NULL;
nbap_edch_port_info_t *old_info = NULL;
transportLayerAddress_ipv4 = 0;
@@ -1263,11 +1263,14 @@ BindingID_port = 0;
conversation = find_conversation(actx->pinfo->fd->num,&dst_addr,
&null_addr, PT_UDP, BindingID_port,
0, NO_ADDR_B|NO_PORT_B);
+ if (conversation) {
+ umts_fp_conversation_info = (umts_fp_conversation_info_t*)conversation_get_proto_data(conversation, proto_fp);
+ }
/* We must also check if this port is about to be overriden, if thats the case we
* might already have a DCH entry on this port which should be overwritten
*/
- if (conversation == NULL || ((umts_fp_conversation_info_t*)conversation_get_proto_data(conversation, proto_fp))->channel == CHANNEL_DCH) {
+ if ((conversation == NULL) || (umts_fp_conversation_info && umts_fp_conversation_info->channel == CHANNEL_DCH)) {