diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-11-11 18:03:50 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-11-11 18:03:50 -0500 |
commit | 46796623f995c5b63d5cfbda1a038d9f6158ec90 (patch) | |
tree | d66e23fcddeaeada82aca9a922a44b0459d63f28 /src | |
parent | 5ba3d09a89502963029483422dc41abbd356cabb (diff) | |
download | tor-46796623f995c5b63d5cfbda1a038d9f6158ec90.tar.gz tor-46796623f995c5b63d5cfbda1a038d9f6158ec90.zip |
Fix a bug in usage of SSL_set1_groups_list()
Apparently, even though the manpage says it returns an int, it
can return a long instead and cause a warning.
Bug not in any released Tor. Part of #28399
Diffstat (limited to 'src')
-rw-r--r-- | src/common/tortls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/tortls.c b/src/common/tortls.c index 7c50f87112..1fbe3c663e 100644 --- a/src/common/tortls.c +++ b/src/common/tortls.c @@ -1228,7 +1228,7 @@ tor_tls_context_new(crypto_pk_t *identity, unsigned int key_lifetime, list = "P-256:P-224"; else list = "P-256:P-224"; - int r = SSL_CTX_set1_groups_list(result->ctx, list); + int r = (int) SSL_CTX_set1_groups_list(result->ctx, list); if (r < 0) goto error; } |