diff options
Diffstat (limited to 'apps/enc.c')
-rw-r--r-- | apps/enc.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -226,7 +226,12 @@ int MAIN(int argc, char **argv) goto bad; } buf[0]='\0'; - fgets(buf,sizeof buf,infile); + if (!fgets(buf,sizeof buf,infile)) + { + BIO_printf(bio_err,"unable to read key from '%s'\n", + file); + goto bad; + } fclose(infile); i=strlen(buf); if ((i > 0) && |