diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2021-10-13 12:06:44 +0200 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2021-10-13 12:06:44 +0200 |
commit | bb0b4ad4b3ef55a4f00721d9580bd56d6a0be403 (patch) | |
tree | 3c5a7776ff1869677b20383bf6261cead603d4aa | |
parent | 9cc514957f12cc741a5fc3972bb87ab311d6afc7 (diff) |
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.
-rw-r--r-- | wiretap/eri_enb_log.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wiretap/eri_enb_log.c b/wiretap/eri_enb_log.c index 4d2b89489d..c237c44766 100644 --- a/wiretap/eri_enb_log.c +++ b/wiretap/eri_enb_log.c @@ -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; } |