forked from osmocom/wireshark
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:
parent
54e5e2c8a6
commit
e3719872b5
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue