forked from pool/postfix
e67e4f7083
fix warnings, update vda patch OBS-URL: https://build.opensuse.org/request/show/179287 OBS-URL: https://build.opensuse.org/package/show/server:mail/postfix?expand=0&rev=170
34 lines
909 B
Diff
34 lines
909 B
Diff
Index: src/tls/tls_client.c
|
|
===================================================================
|
|
--- src/tls/tls_client.c.orig
|
|
+++ src/tls/tls_client.c
|
|
@@ -382,6 +382,12 @@ TLS_APPL_STATE *tls_client_init(const TL
|
|
return (0);
|
|
}
|
|
|
|
+ /* Keep memory usage as low as possible */
|
|
+
|
|
+#ifdef SSL_MODE_RELEASE_BUFFERS
|
|
+ SSL_CTX_set_mode(client_ctx, SSL_MODE_RELEASE_BUFFERS);
|
|
+#endif
|
|
+
|
|
/*
|
|
* See the verify callback in tls_verify.c
|
|
*/
|
|
Index: src/tls/tls_server.c
|
|
===================================================================
|
|
--- src/tls/tls_server.c.orig
|
|
+++ src/tls/tls_server.c
|
|
@@ -389,6 +389,11 @@ TLS_APPL_STATE *tls_server_init(const TL
|
|
return (0);
|
|
}
|
|
|
|
+ /* Keep memory usage as low as possible */
|
|
+#ifdef SSL_MODE_RELEASE_BUFFERS
|
|
+ SSL_CTX_set_mode(server_ctx, SSL_MODE_RELEASE_BUFFERS);
|
|
+#endif
|
|
+
|
|
/*
|
|
* See the verify callback in tls_verify.c
|
|
*/
|