diff options
author | Stefan Fritsch <sf@apache.org> | 2011-06-13 12:58:10 +0200 |
---|---|---|
committer | Stefan Fritsch <sf@apache.org> | 2011-06-13 12:58:10 +0200 |
commit | f66af00c190209b66437454835eb433553edce0e (patch) | |
tree | 97ec52be5d2425bd603712dd45bf4065b6247b86 /modules/ssl/ssl_engine_io.c | |
parent | Avoid "`sentinel' attribute directive ignored" warning with gcc 3.x (diff) | |
download | apache2-f66af00c190209b66437454835eb433553edce0e.tar.xz apache2-f66af00c190209b66437454835eb433553edce0e.zip |
Avoid some memory allocations by using apr_table_setn where the string
arguments are const.
Submitted by: Christophe JAILLET <christophe jaillet wanadoo fr>
PR: 51357
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1135083 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/ssl/ssl_engine_io.c')
-rw-r--r-- | modules/ssl/ssl_engine_io.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/ssl/ssl_engine_io.c b/modules/ssl/ssl_engine_io.c index 4693ea4308..bb2933a15c 100644 --- a/modules/ssl/ssl_engine_io.c +++ b/modules/ssl/ssl_engine_io.c @@ -1053,7 +1053,7 @@ static apr_status_t ssl_io_filter_handshake(ssl_filter_ctx_t *filter_ctx) ssl_log_ssl_error(SSLLOG_MARK, APLOG_INFO, server); /* ensure that the SSL structures etc are freed, etc: */ ssl_filter_io_shutdown(filter_ctx, c, 1); - apr_table_set(c->notes, "SSL_connect_rv", "err"); + apr_table_setn(c->notes, "SSL_connect_rv", "err"); return MODSSL_ERROR_BAD_GATEWAY; } @@ -1071,7 +1071,7 @@ static apr_status_t ssl_io_filter_handshake(ssl_filter_ctx_t *filter_ctx) } /* ensure that the SSL structures etc are freed, etc: */ ssl_filter_io_shutdown(filter_ctx, c, 1); - apr_table_set(c->notes, "SSL_connect_rv", "err"); + apr_table_setn(c->notes, "SSL_connect_rv", "err"); return HTTP_BAD_GATEWAY; } X509_free(cert); @@ -1091,12 +1091,12 @@ static apr_status_t ssl_io_filter_handshake(ssl_filter_ctx_t *filter_ctx) hostname, hostname_note); /* ensure that the SSL structures etc are freed, etc: */ ssl_filter_io_shutdown(filter_ctx, c, 1); - apr_table_set(c->notes, "SSL_connect_rv", "err"); + apr_table_setn(c->notes, "SSL_connect_rv", "err"); return HTTP_BAD_GATEWAY; } } - apr_table_set(c->notes, "SSL_connect_rv", "ok"); + apr_table_setn(c->notes, "SSL_connect_rv", "ok"); return APR_SUCCESS; } |