From 0f4b4ccdeaaed8ab4bb0d254bfb598370baf1bac Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Fri, 19 Jan 2018 10:18:51 +0100 Subject: [PATCH] Audit correctly the res= after upstream refactoring --- openssh-7.6p1-audit.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openssh-7.6p1-audit.patch b/openssh-7.6p1-audit.patch index b09ef65..330e26c 100644 --- a/openssh-7.6p1-audit.patch +++ b/openssh-7.6p1-audit.patch @@ -133,8 +133,8 @@ diff -up openssh-7.6p1/audit.c.audit openssh-7.6p1/audit.c + + fp = sshkey_fingerprint(key, options.fingerprint_hash, SSH_FP_HEX); + crypto_name = key_ssh_name(key); -+ if (audit_keyusage(host_user, crypto_name, sshkey_size(key), fp, *rv) == 0) -+ *rv = 0; ++ if (audit_keyusage(host_user, crypto_name, sshkey_size(key), fp, (*rv == 0)) == 0) ++ *rv = -SSH_ERR_INTERNAL_ERROR; + free(fp); +} +