The indexes returned by ***_get_ex_new_index() functions are used when
authorGeoff Thorpe <geoff@openssl.org>
Sun, 12 Aug 2001 17:14:35 +0000 (17:14 +0000)
committerGeoff Thorpe <geoff@openssl.org>
Sun, 12 Aug 2001 17:14:35 +0000 (17:14 +0000)
commit6982c0da4e73063202cd09b08a654db9bce25ef2
tree3c7f3b5888243c24ce51e73f23ee89146609929a
parentb7727ee616a3351a001497dda077ec63330861db
The indexes returned by ***_get_ex_new_index() functions are used when
setting stack (actually, array) values in ex_data. So only increment the
global counters if the underlying CRYPTO_get_ex_new_index() call succeeds.
This change doesn't make "ex_data" right (see the comment at the head of
ex_data.c to know why), but at least makes the source code marginally less
frustrating.
crypto/engine/engine_list.c