We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45aecca commit 1daf272Copy full SHA for 1daf272
src/libmongoc/src/mongoc/mongoc-secure-channel.c
@@ -64,15 +64,15 @@ mongoc_secure_channel_setup_certificate_from_file (const char *filename)
64
file = fopen (filename, "rb");
65
if (!file) {
66
MONGOC_ERROR ("Couldn't open file '%s'", filename);
67
- return false;
+ return NULL;
68
}
69
70
fseek (file, 0, SEEK_END);
71
pem_length = ftell (file);
72
fseek (file, 0, SEEK_SET);
73
if (pem_length < 1) {
74
MONGOC_ERROR ("Couldn't determine file size of '%s'", filename);
75
76
77
78
pem = (char *) bson_malloc0 (pem_length);
0 commit comments