diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/gnutls.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gnutls.c b/src/gnutls.c index 6fa0e109728..65b83bad6b8 100644 --- a/src/gnutls.c +++ b/src/gnutls.c | |||
| @@ -586,8 +586,10 @@ emacs_gnutls_handle_error (gnutls_session_t session, int err) | |||
| 586 | /* Mostly ignore "The TLS connection was non-properly | 586 | /* Mostly ignore "The TLS connection was non-properly |
| 587 | terminated" message which just means that the peer closed the | 587 | terminated" message which just means that the peer closed the |
| 588 | connection. */ | 588 | connection. */ |
| 589 | #ifdef HAVE_GNUTLS3 | ||
| 589 | if (err == GNUTLS_E_PREMATURE_TERMINATION) | 590 | if (err == GNUTLS_E_PREMATURE_TERMINATION) |
| 590 | level = 3; | 591 | level = 3; |
| 592 | #endif | ||
| 591 | 593 | ||
| 592 | GNUTLS_LOG2 (level, max_log_level, "fatal error:", str); | 594 | GNUTLS_LOG2 (level, max_log_level, "fatal error:", str); |
| 593 | ret = 0; | 595 | ret = 0; |