]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
detect premature termination of connection
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Mon, 1 Aug 2011 20:16:09 +0000 (22:16 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Tue, 2 Aug 2011 18:49:09 +0000 (20:49 +0200)
lib/gnutls_record.c

index 771d6e48e80af51f1902c5744585457fbd5fdba7..7b6d05d18b3629d76697694fc32694f0432f2c92 100644 (file)
@@ -1108,7 +1108,7 @@ cleanup:
   return ret;
 
 recv_error:
-  if (gnutls_error_is_fatal (ret) == 0)
+  if (ret < 0 && gnutls_error_is_fatal (ret) == 0)
     return ret;
 
   if (IS_DTLS(session))