summaryrefslogtreecommitdiffstats
path: root/runtime/nsd_gtls.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-06-25 15:47:50 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2008-06-25 15:47:50 +0200
commit2c46f3de7de4cdcfeac895a9711e1e99765b6a38 (patch)
treed53464f170bb973d9eeb4ecf0c729e1661067596 /runtime/nsd_gtls.c
parentc01daffb9493641bdcb07eb60410c24c0613ed93 (diff)
downloadrsyslog-2c46f3de7de4cdcfeac895a9711e1e99765b6a38.tar.gz
rsyslog-2c46f3de7de4cdcfeac895a9711e1e99765b6a38.tar.xz
rsyslog-2c46f3de7de4cdcfeac895a9711e1e99765b6a38.zip
bugfix: gtls always read only 8 bytes per recv call
Diffstat (limited to 'runtime/nsd_gtls.c')
-rw-r--r--runtime/nsd_gtls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/nsd_gtls.c b/runtime/nsd_gtls.c
index 8e95eca8..103461e7 100644
--- a/runtime/nsd_gtls.c
+++ b/runtime/nsd_gtls.c
@@ -486,7 +486,7 @@ gtlsRecordRecv(nsd_gtls_t *pThis)
DEFiRet;
ISOBJ_TYPE_assert(pThis, nsd_gtls);
- lenRcvd = gnutls_record_recv(pThis->sess, pThis->pszRcvBuf, sizeof(pThis->pszRcvBuf));
+ lenRcvd = gnutls_record_recv(pThis->sess, pThis->pszRcvBuf, NSD_GTLS_MAX_RCVBUF);
if(lenRcvd >= 0) {
pThis->lenRcvBuf = lenRcvd;
pThis->ptrRcvBuf = 0;