[glib-networking: 31/129] BIO methods return 1 for success



commit 39356fae73fcb02853fda1445bb8511c27ebffeb
Author: Daniele Ricci <daniele athome gmail com>
Date:   Sat Jan 14 14:05:12 2017 +0100

    BIO methods return 1 for success
    
    Signed-off-by: Daniele Ricci <daniele athome gmail com>
    
    https://bugzilla.gnome.org/show_bug.cgi?id=777314

 tls/openssl/gtlsbio.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/tls/openssl/gtlsbio.c b/tls/openssl/gtlsbio.c
index 1de1515..6a84265 100644
--- a/tls/openssl/gtlsbio.c
+++ b/tls/openssl/gtlsbio.c
@@ -264,13 +264,13 @@ BIO_s_gtls (void)
     {
       methods_gtls = BIO_meth_new (BIO_TYPE_SOURCE_SINK | BIO_get_new_index (), "gtls");
       if (methods_gtls == NULL ||
-          BIO_meth_set_write (methods_gtls, gtls_bio_write) ||
-          BIO_meth_set_read (methods_gtls, gtls_bio_read) ||
-          BIO_meth_set_puts (methods_gtls, gtls_bio_puts) ||
-          BIO_meth_set_gets (methods_gtls, gtls_bio_gets) ||
-          BIO_meth_set_ctrl (methods_gtls, gtls_bio_ctrl) ||
-          BIO_meth_set_create (methods_gtls, gtls_bio_create) ||
-          BIO_meth_set_destroy (methods_gtls, gtls_bio_destroy))
+          !BIO_meth_set_write (methods_gtls, gtls_bio_write) ||
+          !BIO_meth_set_read (methods_gtls, gtls_bio_read) ||
+          !BIO_meth_set_puts (methods_gtls, gtls_bio_puts) ||
+          !BIO_meth_set_gets (methods_gtls, gtls_bio_gets) ||
+          !BIO_meth_set_ctrl (methods_gtls, gtls_bio_ctrl) ||
+          !BIO_meth_set_create (methods_gtls, gtls_bio_create) ||
+          !BIO_meth_set_destroy (methods_gtls, gtls_bio_destroy))
         return NULL;
     }
   return methods_gtls;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]