]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - test/algorithmid_test.c
Fix the return check of OBJ_obj2txt
[thirdparty/openssl.git] / test / algorithmid_test.c
index ce5fbffc2230a26a877f171f2ec0077f419d3159..0104425c1d4af35bcf0923f3e039b3bcbb4ab14c 100644 (file)
@@ -48,7 +48,7 @@ static int test_spki_aid(X509_PUBKEY *pubkey, const char *filename)
         goto end;
 
     X509_ALGOR_get0(&oid, NULL, NULL, alg);
-    if (!TEST_true(OBJ_obj2txt(name, sizeof(name), oid, 0)))
+    if (!TEST_int_gt(OBJ_obj2txt(name, sizeof(name), oid, 0), 0))
         goto end;
 
     /*