projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3970a70
)
init fix for non-SSL builds
author
Daniel Stenberg
<daniel@haxx.se>
Thu, 10 Feb 2005 07:45:08 +0000
(07:45 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Thu, 10 Feb 2005 07:45:08 +0000
(07:45 +0000)
lib/ssluse.c
patch
|
blob
|
history
diff --git
a/lib/ssluse.c
b/lib/ssluse.c
index
b93540c
..
0a6868d
100644
(file)
--- a/
lib/ssluse.c
+++ b/
lib/ssluse.c
@@
-530,7
+530,7
@@
int Curl_SSL_init(void)
{
#ifdef USE_SSLEAY
/* make sure this is only done once */
- if(
0 !=
init_ssl)
+ if(init_ssl)
return 1;
#ifdef HAVE_ENGINE_LOAD_BUILTIN_ENGINES
@@
-543,12
+543,13
@@
int Curl_SSL_init(void)
/* Setup all the global SSL stuff */
if (!SSLeay_add_ssl_algorithms())
return 0;
+
+ init_ssl++; /* never again */
+
#else
/* SSL disabled, do nothing */
#endif
- init_ssl++; /* never again */
-
return 1;
}