aboutsummaryrefslogtreecommitdiffstats
path: root/src/gnutls_io.c
diff options
context:
space:
mode:
authorGravatar Dash Shendy 2011-07-08 23:04:16 +0200
committerGravatar Dash Shendy 2011-07-08 23:04:16 +0200
commit60cf11c4c8c984d7fafd369171bfa950eefd3c4f (patch)
treefd08c8ee8fafa75d143273a7e24c0a0b6898e13a /src/gnutls_io.c
parentb4a875b12ad2ef07f38ae23b3d3e853b5a59bf89 (diff)
Proxy (TLS termination) patch
Signed-off-by: Dash Shendy <neuromancer@dash.za.net>
Diffstat (limited to 'src/gnutls_io.c')
-rw-r--r--src/gnutls_io.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gnutls_io.c b/src/gnutls_io.c
index 4a550c3..a434eb5 100644
--- a/src/gnutls_io.c
+++ b/src/gnutls_io.c
@@ -666,9 +666,9 @@ ssize_t mgs_transport_read(gnutls_transport_ptr_t ptr,
666 ctxt->input_rc = APR_SUCCESS; 666 ctxt->input_rc = APR_SUCCESS;
667 667
668 /* If Len = 0, we don't do anything. */ 668 /* If Len = 0, we don't do anything. */
669 if (!len) 669 if (!len || buffer == NULL) {
670 return 0; 670 return 0;
671 671 }
672 if (!ctxt->input_bb) { 672 if (!ctxt->input_bb) {
673 ctxt->input_rc = APR_EOF; 673 ctxt->input_rc = APR_EOF;
674 return -1; 674 return -1;