[gnutls-help] gnutls_error_is_fatal() return value

Jonathan Roudiere jonathan.roudiere at gmail.com
Mon Oct 14 11:23:15 CEST 2013


Hello,

Help says that the gnutls_error_is_fatal() function returns -1 for
unknown error value but code doesn't seem to do that.

Is the code shouldn't be modified like in the following patch ?

diff --git a/lib/gnutls_errors.c b/lib/gnutls_errors.c
index 7dd6499..77b4b71 100644
--- a/lib/gnutls_errors.c
+++ b/lib/gnutls_errors.c
@@ -345,7 +345,7 @@ static const gnutls_error_entry error_algorithms[] = {
 int
 gnutls_error_is_fatal (int error)
 {
-  int ret = 1;
+  int ret = -1;
   const gnutls_error_entry *p;

   /* Input sanitzation.  Positive values are not errors at all, and

Thanks,
Joe



More information about the Gnutls-help mailing list