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); +} +