aboutsummaryrefslogtreecommitdiffstats
path: root/src/gnutls_io.c
diff options
context:
space:
mode:
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;