forked from osmocom/wireshark
the entries for file types with magic numbers are
0...heuristic_open_routine_idx-1 at the moment, we loop over all entries of the open_info_arr Change-Id: Iabca32521a066d994b1c840b7514faa983375f0c Reviewed-on: https://code.wireshark.org/review/748 Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
This commit is contained in:
parent
4a51f624bf
commit
f655132913
|
@ -833,7 +833,7 @@ wtap* wtap_open_offline(const char *filename, unsigned int type, int *err, char
|
|||
}
|
||||
|
||||
/* Try all file types that support magic numbers */
|
||||
for (i = 0; i < open_info_arr->len; i++) {
|
||||
for (i = 0; i < heuristic_open_routine_idx; i++) {
|
||||
/* Seek back to the beginning of the file; the open routine
|
||||
for the previous file type may have left the file
|
||||
position somewhere other than the beginning, and the
|
||||
|
|
Loading…
Reference in New Issue