]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
(gnutls_error_is_fatal): Return default is 1 for unknown error codes.
authorSimon Josefsson <simon@josefsson.org>
Fri, 10 Aug 2007 13:51:49 +0000 (15:51 +0200)
committerSimon Josefsson <simon@josefsson.org>
Fri, 10 Aug 2007 13:51:49 +0000 (15:51 +0200)
lib/gnutls_errors.c

index a6a158fa2189f819b4fddb014223657136ec113d..0e28275cf359c0cc9e5dd619f25220aba897675a 100644 (file)
@@ -269,7 +269,7 @@ static const gnutls_error_entry error_algorithms[] = {
 int
 gnutls_error_is_fatal (int error)
 {
-  int ret = 0;
+  int ret = 1;
 
   GNUTLS_ERROR_ALG_LOOP (ret = p->fatal);
   return ret;