We should set init to 1 after calling SSL_set_bio(), otherwise if we fail to call EC_KEY_new_by_curve_name(), we will free r_bio and w_bio twice: one with BIO_free(), and the other with SSL_free().