Wireshark-commits: [Wireshark-commits] master-1.12 713fbc6: If we have no fields, don't try to iter

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Fri, 27 Jun 2014 03:27:41 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=713fbc6baa52499cc1c2ea3dc6a9e896621dbed2
Submitter: Evan Huus (eapache@xxxxxxxxx)
Changed: branch: master-1.12
Repository: wireshark

Commits:

713fbc6 by Evan Huus (eapache@xxxxxxxxx):

    If we have no fields, don't try to iterate through them.
    
    Otherwise glib throws an assertion since the array we pass it is NULL.
    
    Change-Id: I9159c1f5ad99b280c040cd790df3cf352738601f
    Reviewed-on: https://code.wireshark.org/review/2680
    Reviewed-by: Evan Huus <eapache@xxxxxxxxx>
    (cherry picked from commit 8d2eaaab51f0c64de0488b7b2b83cac7086628c1)
    Reviewed-on: https://code.wireshark.org/review/2681
    

Actions performed:

    from  a189ed8   handle TS packet reassembly for PES packets with 0 length field (unknown length)
    adds  713fbc6   If we have no fields, don't try to iterate through them.


Summary of changes:
 epan/print.c |    4 ++++
 1 file changed, 4 insertions(+)