Change ERROR_NONE to 0 where we don't check yaca function 63/78963/1
authorLukasz Pawelczyk <l.pawelczyk@samsung.com>
Thu, 7 Jul 2016 12:33:25 +0000 (14:33 +0200)
committerLukasz Pawelczyk <l.pawelczyk@samsung.com>
Thu, 7 Jul 2016 12:33:25 +0000 (14:33 +0200)
Change-Id: Id1e4a26365610e1e26d1f95b67834e2ad1d0e4df

src/sign.c

index acb0392..6d39a13 100644 (file)
@@ -586,7 +586,7 @@ API int yaca_verify_finalize(yaca_context_h ctx,
        if (ret == 1)
                return YACA_ERROR_NONE;
 
-       if (ret == YACA_ERROR_NONE) {
+       if (ret == 0) {
                ERROR_CLEAR();
                return YACA_ERROR_DATA_MISMATCH;
        }