summaryrefslogtreecommitdiff
path: root/extra/yassl/src/crypto_wrapper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'extra/yassl/src/crypto_wrapper.cpp')
-rw-r--r--extra/yassl/src/crypto_wrapper.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/extra/yassl/src/crypto_wrapper.cpp b/extra/yassl/src/crypto_wrapper.cpp
index 28d7f1b5693..09afc835fce 100644
--- a/extra/yassl/src/crypto_wrapper.cpp
+++ b/extra/yassl/src/crypto_wrapper.cpp
@@ -953,7 +953,11 @@ x509* PemToDer(FILE* file, CertType type, EncryptedInfo* info)
info->set = true;
}
}
- fgets(line,sizeof(line), file); // get blank line
+ // get blank line
+ if (fgets(line,sizeof(line), file) == 0)
+ {
+ /* Impossible case */
+ }
begin = ftell(file);
}