~vcs-imports/libssh/trunk

Viewing all changes in revision 4779.

  • Committer: Anderson Toshiyuki Sasaki
  • Date: 2019-10-07 09:41:30 UTC
  • Revision ID: git-v1:fe18ef279881b65434e3e44fc4743e4b1c7cb891
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>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: