diff --git a/src/adldap/CMakeLists.txt b/src/adldap/CMakeLists.txt index 2b37d8f1..349df755 100644 --- a/src/adldap/CMakeLists.txt +++ b/src/adldap/CMakeLists.txt @@ -81,7 +81,7 @@ if (EXISTS ${VERSION_H}) DESTINATION ${SMB_SRC_PATH}) file(COPY ${SMB_SRC_PATH}/src_older/ndr_sec_helper.c DESTINATION ${SMB_SRC_PATH}) - endif(VERSION_SMB_MINOR GREATER_EQUAL 20) + endif(VERSION_SMB_MINOR GREATER_EQUAL 22) else() message(WARNING "Failed to find Samba version. If its version is 20 or greater, use sources from src_4_20.") endif(EXISTS ${VERSION_H}) diff --git a/src/adldap/krb5client.cpp b/src/adldap/krb5client.cpp index b4a64af2..d6d5f1f8 100644 --- a/src/adldap/krb5client.cpp +++ b/src/adldap/krb5client.cpp @@ -228,7 +228,7 @@ void Krb5Client::Krb5ClientImpl::load_caches() { void Krb5Client::Krb5ClientImpl::load_cache_data(krb5_ccache ccache, bool is_system) { krb5_error_code res; - krb5_principal principal; + krb5_principal principal = nullptr; krb5_creds creds; Krb5TGTData tgt_data;