]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: ssh_fetch_identitylist() returns the return value from
authormarkus@openbsd.org <markus@openbsd.org>
Fri, 6 Mar 2020 18:24:39 +0000 (18:24 +0000)
committerDamien Miller <djm@mindrot.org>
Fri, 13 Mar 2020 02:18:09 +0000 (13:18 +1100)
ssh_request_reply() so we should also check against != 0 ok djm

OpenBSD-Commit-ID: 28d0028769d03e665688c61bb5fd943e18614952

authfd.c

index 9831a12907fab7d0ed62dee0943f99a3b0321ca5..4b647a62833c51e318fd15ecd8669b656070b6d8 100644 (file)
--- a/authfd.c
+++ b/authfd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: authfd.c,v 1.122 2020/02/26 13:40:09 jsg Exp $ */
+/* $OpenBSD: authfd.c,v 1.123 2020/03/06 18:24:39 markus Exp $ */
 /*
  * Author: Tatu Ylonen <ylo@cs.hut.fi>
  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -342,7 +342,7 @@ ssh_agent_has_key(int sock, struct sshkey *key)
        size_t i;
        struct ssh_identitylist *idlist = NULL;
 
-       if ((r = ssh_fetch_identitylist(sock, &idlist)) < 0) {
+       if ((r = ssh_fetch_identitylist(sock, &idlist)) != 0) {
                return r;
        }