diff options
-rw-r--r-- | wiretap/logcat_text.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/wiretap/logcat_text.c b/wiretap/logcat_text.c index e3c0811c4e..870121a76e 100644 --- a/wiretap/logcat_text.c +++ b/wiretap/logcat_text.c @@ -432,6 +432,17 @@ static gboolean logcat_text_dump_text(wtap_dumper *wdh, switch (wdh->encap) { case WTAP_ENCAP_WIRESHARK_UPPER_PDU: + { + gint skipped_length; + + skipped_length = logcat_exported_pdu_length(pd); + pd += skipped_length; + + if (!wtap_dump_file_write(wdh, (const gchar*) pd, phdr->caplen - skipped_length, err)) { + return FALSE; + } + } + break; case WTAP_ENCAP_LOGCAT: /* Skip EXPORTED_PDU*/ if (wdh->encap == WTAP_ENCAP_WIRESHARK_UPPER_PDU) { |