Skip to content

Commit

Permalink
Update pem.c
Browse files Browse the repository at this point in the history
  • Loading branch information
guanzhi committed May 19, 2024
1 parent 5520846 commit e76b3fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pem.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ int pem_read(FILE *fp, const char *name, uint8_t *data, size_t *datalen, size_t

if (!fgets(line, sizeof(line), fp)) {
if (feof(fp)) {
error_print();
//error_print();
return 0;
} else {
error_print();
Expand All @@ -95,8 +95,8 @@ int pem_read(FILE *fp, const char *name, uint8_t *data, size_t *datalen, size_t
remove_newline(line);

if (strcmp(line, begin_line) != 0) {
fprintf(stderr, "%s %d: %s\n", __FILE__, __LINE__, line);
fprintf(stderr, "%s %d: %s\n", __FILE__, __LINE__, begin_line);
//fprintf(stderr, "%s %d: %s\n", __FILE__, __LINE__, line);
//fprintf(stderr, "%s %d: %s\n", __FILE__, __LINE__, begin_line);
error_print();
return -1;
}
Expand Down

0 comments on commit e76b3fc

Please sign in to comment.