When d2i_ASN1_OBJECT() fails an error is pushed onto the thread's error stack. This is now cleared by calling ERR_clear_error().
When d2i_ASN1_OBJECT() fails an error is pushed onto the thread's error stack. This is now cleared by calling ERR_clear_error().