Module: sip-router Branch: master Commit: dcf7195d5dc28097f88b0e6841aa7c805244c22b URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=dcf7195d...
Author: Andrei Pelinescu-Onciul andrei@iptel.org Committer: Andrei Pelinescu-Onciul andrei@iptel.org Date: Thu Apr 23 13:09:40 2009 +0200
tls (common):Revert "Replace TCP_BUF_SIZE with a cfg_get(..)."
This reverts commit 29b0138a7ce09cab1024e25ac457cb8915a973da. (bad fix)
---
modules/tls/tls_server.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/modules/tls/tls_server.c b/modules/tls/tls_server.c index 6795dec..32d8b28 100644 --- a/modules/tls/tls_server.c +++ b/modules/tls/tls_server.c @@ -45,7 +45,6 @@ #include "../../timer.h" #include "../../globals.h" #include "../../pt.h" -#include "../../tcp_options.h"
#include "tls_init.h" #include "tls_domain.h" @@ -814,7 +813,7 @@ int tls_h_read(struct tcp_connection * c) SSL* ssl;
r = &c->req; - bytes_free = cfg_get(tcp, tcp_cfg, rd_buf_size) - (int)(r->pos - r->buf); + bytes_free = TCP_BUF_SIZE - (int)(r->pos - r->buf); if (bytes_free == 0) { ERR("Buffer overrun, dropping\n");