Skip to content

Commit

Permalink
crypto.sh test case corrupts .passed/.failed counters when compiled w…
Browse files Browse the repository at this point in the history
…ithout crypto

crypto.sh corrupts .passed/.failed counters on Solaris and all other
systems, which compile tcpdump without crypto support. The bug has
been reported to upstream as the-tcpdump-group#648 [1]

[1] the-tcpdump-group#648
alexandr nedvedicky - Sun Microsystems - Prague Czech Republic committed Apr 17, 2019
1 parent 0daad51 commit 016f440
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/crypto.sh
Original file line number Diff line number Diff line change
@@ -4,10 +4,10 @@ exitcode=0

# Only attempt OpenSSL-specific tests when compiled with the library.

passed=`cat .passed`
failed=`cat .failed`
if grep '^#define HAVE_LIBCRYPTO 1$' ../config.h >/dev/null
then
passed=`cat .passed`
failed=`cat .failed`
if ./TESTonce esp1 02-sunrise-sunset-esp.pcap esp1.out '-E "0x12345678@192.1.2.45 3des-cbc-hmac96:0x4043434545464649494a4a4c4c4f4f515152525454575758"'
then
passed=`expr $passed + 1`

0 comments on commit 016f440

Please sign in to comment.