]> The Tcpdump Group git mirrors - libpcap/commitdiff
gencode: Remove an assignment after a bpf_error() call
authorFrancois-Xavier Le Bail <[email protected]>
Sun, 4 Jun 2023 13:11:46 +0000 (15:11 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Sun, 4 Jun 2023 13:28:04 +0000 (15:28 +0200)
Reminder: bpf_error() do a longjmp().

This change should fix Coverity CID 1529951.

gencode.c

index eec3fefa8dc7fb3b9be159caa4f050f726015638..caa06f991cf9b2eb97ac000297dd9ba6368704fb 100644 (file)
--- a/gencode.c
+++ b/gencode.c
@@ -8551,7 +8551,6 @@ gen_ifindex(compiler_state_t *cstate, int ifindex)
                        /* We have a FILE *, so this is a savefile */
                        bpf_error(cstate, "ifindex not supported on %s when reading savefiles",
                            pcap_datalink_val_to_description_or_dlt(cstate->linktype));
-                       b0 = NULL;
                        /*NOTREACHED*/
                }
                /* match ifindex */