Skip to content

Commit 9060c73

Browse files
committed
don't use sasl_client_done on OSX Yosemite
it looks like the provided libsasl2 on Yosemite isn't quite right (it reports a sasl_version of 2.1.26, but doesn't provide all the symbols that version should provide out of the actual dylib). Conditionally skipping calling that function for now on OS X.
1 parent b5b3de8 commit 9060c73

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/mongoc/mongoc-sasl.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,8 @@ _mongoc_sasl_destroy (mongoc_sasl_t *sasl)
170170

171171
#if (SASL_VERSION_MAJOR >= 2) && \
172172
(SASL_VERSION_MINOR >= 1) && \
173-
(SASL_VERSION_STEP >= 24)
173+
(SASL_VERSION_STEP >= 24) && \
174+
(!defined(__APPLE__))
174175
sasl_client_done ();
175176
#endif
176177
}

0 commit comments

Comments
 (0)