diff --git a/src/libmongoc/src/mongoc/mongoc-secure-channel.c b/src/libmongoc/src/mongoc/mongoc-secure-channel.c index 21d19d541ca..4db27bf653d 100644 --- a/src/libmongoc/src/mongoc/mongoc-secure-channel.c +++ b/src/libmongoc/src/mongoc/mongoc-secure-channel.c @@ -64,7 +64,7 @@ mongoc_secure_channel_setup_certificate_from_file (const char *filename) file = fopen (filename, "rb"); if (!file) { MONGOC_ERROR ("Couldn't open file '%s'", filename); - return false; + return NULL; } fseek (file, 0, SEEK_END); @@ -72,7 +72,7 @@ mongoc_secure_channel_setup_certificate_from_file (const char *filename) fseek (file, 0, SEEK_SET); if (pem_length < 1) { MONGOC_ERROR ("Couldn't determine file size of '%s'", filename); - return false; + return NULL; } pem = (char *) bson_malloc0 (pem_length);