openssl: set quiet shutdown flag to ensure that shutdown always succeeds
authorFelix Fietkau <nbd@openwrt.org>
Thu, 3 Apr 2014 21:15:04 +0000 (23:15 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 3 Apr 2014 21:15:04 +0000 (23:15 +0200)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
ustream-openssl.c

index 818110730fa8a5f108eee6caa1562c4e21b8de1d..06053e6fb661556a66da8f4cf7f70349ace2eb5b 100644 (file)
@@ -52,6 +52,7 @@ __ustream_ssl_context_new(bool server)
                return NULL;
 
        SSL_CTX_set_verify(c, SSL_VERIFY_NONE, NULL);
+       SSL_CTX_set_quiet_shutdown(c, 1);
 
        return (void *) c;
 }