Wireshark-commits: [Wireshark-commits] master-2.6 d0c1069: Always set *dfp to NULL on an error retu
From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Wed, 19 Dec 2018 06:04:34 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=d0c1069fb105bfc2409e5626a844c765b81f8e18
Submitter: "Guy Harris <guy@xxxxxxxxxxxx>"
Changed: branch: master-2.6
Repository: wireshark

Commits:

d0c1069 by Guy Harris (guy@xxxxxxxxxxxx):

    Always set *dfp to NULL on an error return from dfilter_compile().
    
    All other error-return code paths set *dfp to NULL; make this one do so
    as well.
    
    Change-Id: I4015c1d53bdbac99cdeda158d7d01c8da7bf2562
    Reviewed-on: https://code.wireshark.org/review/31102
    Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
    (cherry picked from commit 909881658b1c7d433c9248e1b024fc99631e9198)
    Reviewed-on: https://code.wireshark.org/review/31103
    

Actions performed:

    from  2cc82bf   Don't assume the filter will be non-null.
     add  d0c1069   Always set *dfp to NULL on an error return from dfilter_compile().


Summary of changes:
 epan/dfilter/dfilter.c | 1 +
 1 file changed, 1 insertion(+)