File err-remove-thread-state.diff of Package curl

diff -ruN curl-7.48.0/lib/vtls/openssl.c curl-7.48.0-libressl/lib/vtls/openssl.c
--- curl-7.48.0/lib/vtls/openssl.c	2016-03-22 01:15:38.000000000 -0600
+++ curl-7.48.0-libressl/lib/vtls/openssl.c	2016-04-30 22:28:12.225748008 -0600
@@ -735,13 +735,7 @@
   ERR_free_strings();
 
   /* Free thread local error state, destroying hash upon zero refcount */
-#ifdef HAVE_ERR_REMOVE_THREAD_STATE_NOARG
-  ERR_remove_thread_state();
-#elif defined(HAVE_ERR_REMOVE_THREAD_STATE)
   ERR_remove_thread_state(NULL);
-#else
-  ERR_remove_state(0);
-#endif
 
   /* Free all memory allocated by all configuration modules */
   CONF_modules_free();
openSUSE Build Service is sponsored by