Fix a crash in reuse of i2d_X509_PUBKEY