comparison libtomcrypt/demos/tv_gen.c @ 1733:d529a52b2f7c coverity coverity

merge coverity from main
author Matt Johnston <matt@ucc.asn.au>
date Fri, 26 Jun 2020 21:07:34 +0800
parents e9dba7abd939
children
comparison
equal deleted inserted replaced
1643:b59623a64678 1733:d529a52b2f7c
76 } 76 }
77 if ((err = cipher_descriptor[x].keysize(&kl)) != CRYPT_OK) { 77 if ((err = cipher_descriptor[x].keysize(&kl)) != CRYPT_OK) {
78 printf("keysize error: %s\n", error_to_string(err)); 78 printf("keysize error: %s\n", error_to_string(err));
79 exit(EXIT_FAILURE); 79 exit(EXIT_FAILURE);
80 } 80 }
81 if (kl == lastkl) break; 81 if (kl == lastkl) continue;
82 lastkl = kl; 82 lastkl = kl;
83 fprintf(out, "Key Size: %d bytes\n", kl); 83 fprintf(out, "Key Size: %d bytes\n", kl);
84 84
85 key = XMALLOC(kl); 85 key = XMALLOC(kl);
86 if (key == NULL) { 86 if (key == NULL) {