diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-06-25 15:47:50 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-06-25 15:47:50 +0200 |
commit | 2c46f3de7de4cdcfeac895a9711e1e99765b6a38 (patch) | |
tree | d53464f170bb973d9eeb4ecf0c729e1661067596 /runtime/nsd_gtls.c | |
parent | c01daffb9493641bdcb07eb60410c24c0613ed93 (diff) | |
download | rsyslog-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.c | 2 |
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; |