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:
parent
9cc514957f
commit
bb0b4ad4b3
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue