[iseries] return WTAP_OPEN_ERROR if file_seek() fails
authorMartin Kaiser <wireshark@kaiser.cx>
Sun, 17 Jan 2016 16:20:34 +0000 (17:20 +0100)
committerMartin Kaiser <wireshark@kaiser.cx>
Sun, 17 Jan 2016 16:24:22 +0000 (16:24 +0000)
like it's done for the other file types

Change-Id: I8caa360b9c527ea642ee6b5102759ad341ad0030
Reviewed-on: https://code.wireshark.org/review/13359
Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
wiretap/iseries.c

index bb7e9c9d0ebedc4c969b4f044279d7fc2c8d979e..2f5bc656f7fb3072855c9f43165748b5b3be4d84 100644 (file)
@@ -245,7 +245,7 @@ iseries_open (wtap * wth, int *err, gchar ** err_info)
 
         if (file_seek (wth->fh, 0, SEEK_SET, err) == -1)
           {
-            return WTAP_OPEN_NOT_MINE;
+            return WTAP_OPEN_ERROR;
           }
         return WTAP_OPEN_MINE;
       }