]> The Tcpdump Group git mirrors - tcpdump/commit
Cleanups.
authorGuy Harris <[email protected]>
Wed, 30 Aug 2017 18:18:17 +0000 (11:18 -0700)
committerGuy Harris <[email protected]>
Wed, 30 Aug 2017 18:18:32 +0000 (11:18 -0700)
commitf7e20cf4da324fb040b4601cc71abd9025848387
tree83034cabf7769f676e8665c6ab6e92c0e9a5d237
parent0559dc98748bac47c062c0c33faec2cae44f6fa0
Cleanups.

Attempt to allocate the buffer before doing any decryption calls and, if
the attempt fails, report an error and return an error indication.

Make sizes unsigned, as they can't be negative;
EVP_CIPHER_CTX_block_size() returns an int, but that's just because they
picked the wrong data type in OpenSSL.

No need to use calloc() for the output buffer - just use malloc().
print-esp.c