Reinsert Gerards patch (r14342) which was lost.

svn path=/trunk/; revision=14351
This commit is contained in:
Anders Broman 2005-05-11 22:19:36 +00:00
parent eac5e05d3a
commit d87981ccb6
1 changed files with 4 additions and 2 deletions

View File

@ -961,8 +961,10 @@ dissect_gsm_map_GSMMAPPDU(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset,
application_context_version = 0;
if (pinfo->private_data != NULL){
version_ptr = strrchr(pinfo->private_data,'.');
version_str = g_strdup(version_ptr+1);
application_context_version = atoi(version_str);
if (version_ptr) {
version_str = g_strdup(version_ptr+1);
application_context_version = atoi(version_str);
}
}
gsmmap_pdu_type = tvb_get_guint8(tvb, offset)&0x0f;