]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: fix check for sig_s; noted by qsa at qualys.com
authormarkus@openbsd.org <markus@openbsd.org>
Wed, 13 Nov 2019 20:25:45 +0000 (20:25 +0000)
committerDamien Miller <djm@mindrot.org>
Thu, 14 Nov 2019 21:50:10 +0000 (08:50 +1100)
OpenBSD-Commit-ID: 34198084e4afb424a859f52c04bb2c9668a52867

ssh-sk.c

index 41fa164b71b96079ac102ce5c56325f3c794a368..754577d9d8c980fe4a265156e429ef5f09c9d534 100644 (file)
--- a/ssh-sk.c
+++ b/ssh-sk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-sk.c,v 1.10 2019/11/12 22:38:19 djm Exp $ */
+/* $OpenBSD: ssh-sk.c,v 1.11 2019/11/13 20:25:45 markus Exp $ */
 /*
  * Copyright (c) 2019 Google LLC
  *
@@ -366,7 +366,7 @@ sshsk_ecdsa_sig(struct sk_sign_response *resp, struct sshbuf *sig)
        int r = SSH_ERR_INTERNAL_ERROR;
 
        /* Check response validity */
-       if (resp->sig_r == NULL || resp->sig_r == NULL) {
+       if (resp->sig_r == NULL || resp->sig_s == NULL) {
                error("%s: sk_sign response invalid", __func__);
                r = SSH_ERR_INVALID_FORMAT;
                goto out;