Wireshark-commits: [Wireshark-commits] master-2.6 004db7b: You have to set tm_isdst before calling
From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Wed, 09 May 2018 03:49:27 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=004db7b43de1ed2209291651bad4546c04aeedf7
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master-2.6
Repository: wireshark

Commits:

004db7b by Guy Harris (guy@xxxxxxxxxxxx):

    You have to set tm_isdst before calling mktime().
    
    You either need to tell mktime() that 1) DST/Summer Time is in effect,
    2) DST/Summer Time isn't in effect, or 3) we don't know whether
    DST/Summer Time is in effect, you figure it out.
    
    We set tm_isdst to -1, to choose option 3), which is what we want.
    
    Fixes Coverity CID 1435496.
    
    Change-Id: I0f22ef1201ee8abefb3fa75aa3432b021fb13cfd
    Reviewed-on: https://code.wireshark.org/review/27408
    Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
    (cherry picked from commit 4513c66b1a2c7f7feb729e7e4e576b390395a123)
    Reviewed-on: https://code.wireshark.org/review/27409
    

Actions performed:

    from  5071a38   You have to set tm_isdst before calling mktime().
    adds  004db7b   You have to set tm_isdst before calling mktime().


Summary of changes:
 extcap/androiddump.c | 2 ++
 1 file changed, 2 insertions(+)