diff --git a/channels/location/client/location_main.c b/channels/location/client/location_main.c index 37bddf8cb..33ce7dc08 100644 --- a/channels/location/client/location_main.c +++ b/channels/location/client/location_main.c @@ -417,7 +417,7 @@ static UINT location_send(LocationClientContext* context, LOCATION_PDUTYPE type, RDPLOCATION_LOCATION3D_DELTA_PDU pdu = { .latitudeDelta = va_arg(ap, double), .longitudeDelta = va_arg(ap, double), .altitudeDelta = va_arg(ap, INT32), - pdu.speedDelta = NULL, + .speedDelta = NULL, .headingDelta = NULL }; if ((count > 3) && (callback->clientVersion >= RDPLOCATION_PROTOCOL_VERSION_200)) { diff --git a/winpr/libwinpr/sspi/Kerberos/kerberos.c b/winpr/libwinpr/sspi/Kerberos/kerberos.c index 68052abd8..1263ec6fa 100644 --- a/winpr/libwinpr/sspi/Kerberos/kerberos.c +++ b/winpr/libwinpr/sspi/Kerberos/kerberos.c @@ -397,7 +397,12 @@ static SECURITY_STATUS SEC_ENTRY kerberos_AcquireCredentialsHandleA( goto cleanup; } else + { + if (krb_log_exec(krb5_cc_default, ctx, &ccache)) + goto cleanup; own_ccache = FALSE; + } + WINPR_ASSERT(ccache); } else if (fCredentialUse & SECPKG_CRED_OUTBOUND) { @@ -406,6 +411,7 @@ static SECURITY_STATUS SEC_ENTRY kerberos_AcquireCredentialsHandleA( goto cleanup; if (krb_log_exec(krb5_cc_get_principal, ctx, ccache, &principal)) goto cleanup; + WINPR_ASSERT(ccache); own_ccache = FALSE; } else @@ -420,6 +426,7 @@ static SECURITY_STATUS SEC_ENTRY kerberos_AcquireCredentialsHandleA( if (krb_log_exec(krb5_cc_resolve, ctx, krb_settings->cache, &ccache)) goto cleanup; } + WINPR_ASSERT(ccache); } if (krb_settings && krb_settings->keytab) @@ -446,6 +453,8 @@ static SECURITY_STATUS SEC_ENTRY kerberos_AcquireCredentialsHandleA( matchCreds.client = principal; WINPR_ASSERT(principal); + WINPR_ASSERT(ctx); + WINPR_ASSERT(ccache); if (krb_log_exec(build_krbtgt, ctx, principal, &matchCreds.server)) goto cleanup;