From 103f8b6506f62939b650c328c5b7854caecf9bd5 Mon Sep 17 00:00:00 2001 From: Dave Rodgman Date: Fri, 1 Jul 2022 11:31:05 +0100 Subject: [PATCH] Spelling and grammar improvements Signed-off-by: Dave Rodgman --- library/x509_crt.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/library/x509_crt.c b/library/x509_crt.c index 3f00e4384..e4f7945d4 100644 --- a/library/x509_crt.c +++ b/library/x509_crt.c @@ -1658,7 +1658,7 @@ cleanup: } else { - /* determinate if the file entry could be a link, using lstat(2) + /* Determine if the file entry could be a link. Using lstat(2) * is safer than just stat(2), otherwise a broken link will * give us a false positive. */ if( lstat( entry_name, &sb ) == -1 ) @@ -1667,13 +1667,12 @@ cleanup: goto cleanup; } - /* if the file is a symbolic link, we need to validate the real + /* If the file is a symbolic link, we need to validate the real * information using stat(2). */ if( S_ISLNK( sb.st_mode ) ) { - /* if stat(2) fails it could be a broken link or a generic - * error, if the link is broken, just report it as a - * certificate that could not be processed, otherwise + /* If stat(2) fails it could be a broken link or a generic + * error. If the link is broken, ignore it, otherwise * just set a MBEDTLS_ERR_X509_FILE_IO_ERROR. */ if( stat( entry_name, &sb ) == -1 ) {