forked from osmocom/wireshark
Ericsson ENB log reader: Check the whole line for the magic string.
This commit is contained in:
parent
5bb521aa52
commit
94b28aa79a
|
@ -109,7 +109,7 @@ eri_enb_log_open(wtap *wth, int *err, gchar **err_info)
|
|||
return WTAP_OPEN_NOT_MINE;
|
||||
}
|
||||
|
||||
if (g_strstr_len(line1, strlen(eri_enb_log_magic), eri_enb_log_magic) == NULL)
|
||||
if (g_strstr_len(line1, sizeof(line1), eri_enb_log_magic) == NULL)
|
||||
{
|
||||
return WTAP_OPEN_NOT_MINE;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue