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 1d8680d07f
This commit is contained in:
Stig Bjørlykke 2023-02-02 14:20:54 +01:00
parent 54e5e2c8a6
commit e3719872b5
1 changed files with 2 additions and 2 deletions

View File

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