]> The Tcpdump Group git mirrors - tcpdump/commit
ESP: Fix some unreachable code warnings
authorFrancois-Xavier Le Bail <[email protected]>
Sun, 8 Jul 2018 18:01:46 +0000 (20:01 +0200)
committerGuy Harris <[email protected]>
Sat, 24 Nov 2018 02:59:18 +0000 (18:59 -0800)
commitbff238b81abc618974a3c68faa87c9004e1f40f1
tree3e880421f1b96e9f58bb1f64e431128d614e0141
parent5750d5a3fc2a31b678001816162c03946552c957
ESP: Fix some unreachable code warnings

Found with -Wunreachable-code clang compiler option.

The errors were:
./print-esp.c:263:3: warning: code will never be executed
                                                 [-Wunreachable-code]
                free(input_buffer);
                ^~~~
./print-esp.c:246:3: warning: code will never be executed
                                                 [-Wunreachable-code]
                EVP_CIPHER_CTX_free(ctx);
                ^~~~~~~~~~~~~~~~~~~
./print-esp.c:843:5: warning: code will never be executed
                                                 [-Wunreachable-code]
                                free(input_buffer);
                                ^~~~
./print-esp.c:826:5: warning: code will never be executed
                                                 [-Wunreachable-code]
                                EVP_CIPHER_CTX_free(ctx);
                                ^~~~~~~~~~~~~~~~~~~

(cherry picked from commit dcce77e91dec9758ad3d26365cd8a928004298d6)
print-esp.c