From 0f4b4ccdeaaed8ab4bb0d254bfb598370baf1bac Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Jan 19 2018 09:18:51 +0000 Subject: Audit correctly the res= after upstream refactoring --- 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); +} +