Correct a mixup of return values
authorRichard Levitte <levitte@openssl.org>
Thu, 2 Oct 2003 10:39:31 +0000 (10:39 +0000)
committerRichard Levitte <levitte@openssl.org>
Thu, 2 Oct 2003 10:39:31 +0000 (10:39 +0000)
ssl/ssl_ciph.c

index f63163f26c38cfd1964194803e67b0c51c4a04ee..121056697aeb31c37426e070ba5db53d5111c1b8 100644 (file)
@@ -1063,9 +1063,9 @@ int SSL_COMP_add_compression_method(int id, COMP_METHOD *cm)
        if ((sk == NULL) || !sk_SSL_COMP_push(sk,comp))
                {
                SSLerr(SSL_F_SSL_COMP_ADD_COMPRESSION_METHOD,ERR_R_MALLOC_FAILURE);
-               return(0);
+               return(1);
                }
        else
-               return(1);
+               return(0);
        }