diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-01-14 13:07:17 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-01-14 21:08:18 +0000 |
commit | 9cc00c562369fe0b9149eb2aeee090cf52167285 (patch) | |
tree | 00f52bc3c14ae31681d6e6b931b3f942f9bcebfa /wiretap/wtap.c | |
parent | c3190d9d70febdd1dbc15269e970f32aeda33f76 (diff) |
Check for gzipped files even if we don't have libz.
If we aren't built with libz, report a new "decompression not supported"
error if the file is gzipped; the problem isn't that it's a new capture
file format we don't support, it's that a *compressed* capture file, in
some format, but we don't support the *compression* format used.
This can be extended if we add support for other compression formats.
Change-Id: I19239525d4e02357e3ca7189996556839af8fce2
Reviewed-on: https://code.wireshark.org/review/25315
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wiretap/wtap.c')
-rw-r--r-- | wiretap/wtap.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/wiretap/wtap.c b/wiretap/wtap.c index 9ee5ed8bf1..5b1d6fdf17 100644 --- a/wiretap/wtap.c +++ b/wiretap/wtap.c @@ -1096,6 +1096,9 @@ static const char *wtap_errlist[] = { /* WTAP_ERR_UNWRITABLE_REC_DATA */ "That record can't be written in that format" + + /* WTAP_ERR_DECOMPRESSION_NOT_SUPPORTED */ + "We don't support decompressing that type of compressed file", }; #define WTAP_ERRLIST_SIZE (sizeof wtap_errlist / sizeof wtap_errlist[0]) |