aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2023-02-02 14:20:54 +0100
committerStig Bjørlykke <stig@bjorlykke.org>2023-02-02 15:13:46 +0100
commite3719872b5940c5f7f95a8a88ea8fa12644177e1 (patch)
treed7363435190c8f25cf731059b1ad7ba12b628720
parent54e5e2c8a69effb744c93648f402593b5aca4f12 (diff)
gsm_sms: Allow empty src and dst in hashing functions
Allow empty pinfo.src and pinfo.dst in hashing functions to fix reassembly when delivered in a NAS message. Fixup 1d8680d07f92352c4ff95083fe578e8f263bac6d
-rw-r--r--epan/dissectors/packet-gsm_sms.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-gsm_sms.c b/epan/dissectors/packet-gsm_sms.c
index 87a53b4ef4..b6596f68d7 100644
--- a/epan/dissectors/packet-gsm_sms.c
+++ b/epan/dissectors/packet-gsm_sms.c
@@ -412,7 +412,7 @@ sm_fragment_temporary_key(const packet_info *pinfo,
const gchar* addr = (const char*)data;
sm_fragment_key *key;
- if (addr == NULL || pinfo->src.data == NULL || pinfo->dst.data == NULL)
+ if (addr == NULL)
return NULL;
key = g_slice_new(sm_fragment_key);
@@ -432,7 +432,7 @@ sm_fragment_persistent_key(const packet_info *pinfo,
const gchar* addr = (const char*)data;
sm_fragment_key *key = g_slice_new(sm_fragment_key);
- if (addr == NULL || pinfo->src.data == NULL || pinfo->dst.data == NULL)
+ if (addr == NULL)
return NULL;
key->addr_info = wmem_strdup(NULL, addr);