Wireshark-commits: [Wireshark-commits] master c01ace7: Write out the last packet in text_import().
From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Wed, 20 Mar 2019 07:27:31 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=c01ace71efae9ccd2d59a3ab483cd31d7617177b
Submitter: "Guy Harris <guy@xxxxxxxxxxxx>"
Changed: branch: master
Repository: wireshark

Commits:

c01ace7 by Guy Harris (guy@xxxxxxxxxxxx):

    Write out the last packet in text_import().
    
    Write out the last packet after text_import_scan() returns, if it
    returned successfully, the same way that it's done in text2pcap.  This
    means we can get rid of the EOF rule in the lexer - the lexer just
    finishes and returns 0 to text_import_scan(), which then returns a
    success indication to text_import() - and make write_current_packet()
    static.
    
    Change-Id: Ibafdbe01da6bb33a213a32847f1981bc943290a1
    Reviewed-on: https://code.wireshark.org/review/32486
    Petri-Dish: Guy Harris <guy@xxxxxxxxxxxx>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
    

Actions performed:

    from  df737b2   SCTP PPID Update
     add  c01ace7   Write out the last packet in text_import().


Summary of changes:
 ui/text_import.c         | 5 ++++-
 ui/text_import_scanner.h | 1 -
 ui/text_import_scanner.l | 2 --
 3 files changed, 4 insertions(+), 4 deletions(-)