]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Termination when expecting an alert is handled gracefully in DTLS.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 27 Dec 2012 14:26:40 +0000 (16:26 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Wed, 2 Jan 2013 20:59:21 +0000 (21:59 +0100)
lib/gnutls_record.c

index 8dce83f77a49c9b157b414bfa4c99a772b244762..4086b9ebae27dd15663e9ea5a0637dc824e72536 100644 (file)
@@ -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 */