X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Flibmemcached%2Fsasl.cc;h=90f663a1262453deb530dfa4a4637b2d9b900371;hb=HEAD;hp=9c8ad52f7211ebad0387c2ca86c3e8412460accf;hpb=01c5e0ed8d3d9c72ea192792d1c49a50e756d635;p=awesomized%2Flibmemcached diff --git a/src/libmemcached/sasl.cc b/src/libmemcached/sasl.cc index 9c8ad52f..90f663a1 100644 --- a/src/libmemcached/sasl.cc +++ b/src/libmemcached/sasl.cc @@ -1,6 +1,6 @@ /* +--------------------------------------------------------------------+ - | libmemcached - C/C++ Client Library for memcached | + | libmemcached-awesome - C/C++ Client Library for memcached | +--------------------------------------------------------------------+ | Redistribution and use in source and binary forms, with or without | | modification, are permitted under the terms of the BSD license. | @@ -9,11 +9,12 @@ | the terms online at: https://opensource.org/licenses/BSD-3-Clause | +--------------------------------------------------------------------+ | Copyright (c) 2006-2014 Brian Aker https://datadifferential.com/ | - | Copyright (c) 2020 Michael Wallner | + | Copyright (c) 2020-2021 Michael Wallner https://awesome.co/ | +--------------------------------------------------------------------+ */ #include "libmemcached/common.h" + #include #include @@ -91,7 +92,11 @@ static memcached_return_t resolve_names(memcached_instance_st &server, char *lad extern "C" { static void sasl_shutdown_function() { +#if HAVE_SASL_CLIENT_DONE + (void) sasl_client_done(); +#else sasl_done(); +#endif } static std::atomic sasl_startup_state(SASL_OK);