eNode-B: Fix check for eri_enb_log_magic

Files not having the eri_enb_log_magic should not be opened as a
eNode-B raw log file format.
This commit is contained in:
Stig Bjørlykke 2021-10-13 12:06:44 +02:00
parent 9cc514957f
commit bb0b4ad4b3
1 changed files with 1 additions and 1 deletions

View File

@ -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) != 0 )
if (g_strstr_len(line1, strlen(eri_enb_log_magic), eri_enb_log_magic) == NULL)
{
return WTAP_OPEN_NOT_MINE;
}