HomePhabricator

pki_crypto: Use temporary pointer when using i2d_*

Authored by ansasaki on Oct 3 2019, 6:49 PM.

Description

pki_crypto: Use temporary pointer when using i2d_*

These functions modify the provided pointer by advancing to the end of
if (point to the byte after the last written). This makes the pointer
invalid, making necessary to use a temporary variable.

Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit fe18ef279881b65434e3e44fc4743e4b1c7cb891)

Details

Committed
ansasakiAug 13 2020, 5:32 PM
Parents
rLIBSSHe0c7d78a39a2: tests: Do not parse configuration file in torture_knownhosts
Branches
Unknown
Tags
Unknown