]> www.wagner.pp.ru Git - openssl-gost/engine.git/blobdiff - benchmark/sign.c
Some PVS Studio nits
[openssl-gost/engine.git] / benchmark / sign.c
index 417d8dd76b261f7274cc388a488c6e3651fe32ae..2d1d7866480a16e0418ef31d70285d95260e03fc 100644 (file)
@@ -131,6 +131,10 @@ int main(int argc, char **argv)
            fflush(stdout);
            siglen = EVP_PKEY_size(pkey);
            sigbuf = malloc(siglen * cycles);
+       if (!sigbuf) {
+           fprintf(stderr, "No tests were run, malloc failure.\n");
+           exit(1);
+       }
 
            for (pass = 0; pass < 2; pass++) {
                struct timespec ts;