From: Nikos Mavrogiannopoulos Date: Thu, 27 Dec 2012 14:26:40 +0000 (+0200) Subject: Termination when expecting an alert is handled gracefully in DTLS. X-Git-Tag: gnutls_3_1_7~148 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c37fa05e33d9a76c3c4cf3f3f04a76bc2336058;p=thirdparty%2Fgnutls.git Termination when expecting an alert is handled gracefully in DTLS. --- diff --git a/lib/gnutls_record.c b/lib/gnutls_record.c index 8dce83f77a..4086b9ebae 100644 --- a/lib/gnutls_record.c +++ b/lib/gnutls_record.c @@ -1162,7 +1162,7 @@ cleanup: return ret; recv_error: - if (ret < 0 && (gnutls_error_is_fatal (ret) == 0 || ret == GNUTLS_E_TIMEDOUT)) + if (ret < 0 && (gnutls_error_is_fatal (ret) == 0 || ret == GNUTLS_E_TIMEDOUT) return ret; if (type == GNUTLS_ALERT) /* we were expecting close notify */