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>

Details

Committed
ansasakiOct 7 2019, 11:41 AM
Parents
rLIBSSH689f1b0a6b8a: callbacks: Improve documentation about callbacks handling
Branches
Unknown
Tags
Unknown