]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: thinko in previous; spotted by Mantas
authordjm@openbsd.org <djm@openbsd.org>
Wed, 2 Oct 2019 09:50:50 +0000 (09:50 +0000)
committerDamien Miller <djm@mindrot.org>
Wed, 2 Oct 2019 09:53:40 +0000 (19:53 +1000)
=?UTF-8?q?=20Mikul=C4=97nas?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

OpenBSD-Commit-ID: ffa3f5a45e09752fc47d9041e2203ee2ec15b24d

ssh-keygen.c

index 7a6afa3c4555a5d45d7fb892de2c6e15d0dd0e4a..e039be304cf9b83c5ec94edfc71ae0cbeb7e7ba9 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-keygen.c,v 1.353 2019/10/02 08:05:50 djm Exp $ */
+/* $OpenBSD: ssh-keygen.c,v 1.354 2019/10/02 09:50:50 djm Exp $ */
 /*
  * Author: Tatu Ylonen <ylo@cs.hut.fi>
  * Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -3030,7 +3030,7 @@ main(int argc, char **argv)
        argc -= optind;
 
        if (sign_op != NULL) {
-               if (cert_principals == NULL && *cert_principals == '\0') {
+               if (cert_principals == NULL || *cert_principals == '\0') {
                        error("Too few arguments for sign/verify: "
                            "missing namespace");
                        exit(1);