diff options
author | Dario Lombardo <lomato@gmail.com> | 2017-02-05 19:51:31 +0100 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2017-02-06 14:44:48 +0000 |
commit | 015adf808cbc6e7fe22b8280d9714b6be0da66ff (patch) | |
tree | ac512b769074f69dede31bb6767086621eb8fb91 /rawshark.c | |
parent | b774638092153ea51b0d4a2cfdb1a8b7421ce445 (diff) |
rawshark: fix err code.
Change-Id: I5aec3ad14eb0f0d591691f2aa7eb8ce09341e020
Reviewed-on: https://code.wireshark.org/review/19963
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'rawshark.c')
-rw-r--r-- | rawshark.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rawshark.c b/rawshark.c index df4a7b360d..074a08b4b2 100644 --- a/rawshark.c +++ b/rawshark.c @@ -917,6 +917,8 @@ raw_pipe_read(struct wtap_pkthdr *phdr, guchar * pd, int *err, gchar **err_info, size_t bytes_needed = sizeof(disk_hdr); guchar *ptr = (guchar*) &disk_hdr; + *err = 0; + if (want_pcap_pkthdr) { bytes_needed = sizeof(mem_hdr); ptr = (guchar*) &mem_hdr; |