Skip to content

Commit

Permalink
lib-ssl-iostream: Fix compiler warning
Browse files Browse the repository at this point in the history
~SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS makes it unsigned, so it doesn't fit
into signed 32bit long.
  • Loading branch information
sirainen authored and cmouse committed Jul 10, 2017
1 parent d167a7d commit ba4eb91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib-ssl-iostream/iostream-openssl-context.c
Expand Up @@ -515,7 +515,7 @@ ssl_iostream_context_init_common(struct ssl_iostream_context *ctx,
const struct ssl_iostream_settings *set,
const char **error_r)
{
long ssl_ops = SSL_OP_NO_SSLv2 |
unsigned long ssl_ops = SSL_OP_NO_SSLv2 |
(SSL_OP_ALL & ~SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS);

ctx->pool = pool_alloconly_create("ssl iostream context", 4096);
Expand Down

0 comments on commit ba4eb91

Please sign in to comment.