diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-10-07 01:05:17 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-10-07 08:05:52 +0000 |
commit | 4611b8d48576060bd97662209f38b8a0264f3a40 (patch) | |
tree | c00d5eb948377091783d5afec88502c505712293 /wiretap/iseries.c | |
parent | 8439fd57967be54d284f2f6f7426c79309f07196 (diff) | |
download | wireshark-4611b8d48576060bd97662209f38b8a0264f3a40.tar.gz |
Make the code a bit more like the pre-API change code.
Change-Id: I9a8bd2c7ce97993c1b72caf63254d024950f8b94
Reviewed-on: https://code.wireshark.org/review/4520
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wiretap/iseries.c')
-rw-r--r-- | wiretap/iseries.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/wiretap/iseries.c b/wiretap/iseries.c index b3074ca493..c6d3c36b99 100644 --- a/wiretap/iseries.c +++ b/wiretap/iseries.c @@ -212,12 +212,9 @@ iseries_open (wtap * wth, int *err, gchar ** err_info) errno = WTAP_ERR_CANT_READ; if (!wtap_read_bytes (wth->fh, &magic, sizeof magic, err, err_info)) { - if (*err == WTAP_ERR_SHORT_READ) - { - /* Not enough bytes for a magic string, so not an iSeries trace */ - return 0; - } - return -1; + if (*err != WTAP_ERR_SHORT_READ) + return -1; + return 0; } /* |