Merge pull request #11257 from akallabeth/action-script

[client,x11] improve action script logging
This commit is contained in:
akallabeth
2025-02-26 19:35:22 +01:00
committed by GitHub
2 changed files with 7 additions and 2 deletions

View File

@@ -203,7 +203,7 @@ BOOL run_action_script(xfContext* xfc, const char* what, const char* arg, fn_act
if (!keyScript)
{
WLog_ERR(TAG, "Failed to execute '%s'", command);
WLog_ERR(TAG, "[ActionScript] Failed to execute '%s'", command);
goto fail;
}
@@ -223,6 +223,8 @@ BOOL run_action_script(xfContext* xfc, const char* what, const char* arg, fn_act
}
rc = read_data;
if (!rc)
WLog_ERR(TAG, "[ActionScript] No data returned from command '%s'", command);
fail:
if (keyScript)
pclose(keyScript);

View File

@@ -1361,7 +1361,10 @@ static SECURITY_STATUS SEC_ENTRY kerberos_AcceptSecurityContext(
(!realm || krb_log_exec_bool(krb5_realm_compare, credentials->ctx, principal,
entry.principal)))
break;
if (krb_log_exec(krb5glue_free_keytab_entry_contents, credentials->ctx, &entry))
const krb5_error_code res =
krb_log_exec(krb5glue_free_keytab_entry_contents, credentials->ctx, &entry);
memset(&entry, 0, sizeof(entry));
if (res != 0)
goto cleanup;
} while (1);