Skip non-existing files.

Reviewed-by: Rich Salz <rsalz@openssl.org>
GH: #1324
This commit is contained in:
Kurt Roeckx 2016-07-16 21:45:34 +02:00
parent 5a3a546678
commit abdb0c7b4e

View File

@ -33,6 +33,8 @@ int main(int argc, char **argv) {
stat(argv[n], &st);
f = fopen(argv[n], "rb");
if (f == NULL)
continue;
buf = malloc(st.st_size);
s = fread(buf, 1, st.st_size, f);
OPENSSL_assert(s == (size_t)st.st_size);