Commit 78066157 authored by Mark Andrews's avatar Mark Andrews
Browse files

Address bugs in opensslrsa_tofile

1) if 'key->external' is set we just need to call
2) the cleanup of 'bufs' was incorrect as 'i' doesn't reflect the
   the current index into 'bufs'.  Use a simple for loop.

This review was triggered by Coverity reporting a buffer overrun
on 'bufs'.
parent 573a5858
Pipeline #86498 failed with stages
in 18 minutes and 37 seconds