diff options
author | 2019-10-02 08:05:50 +0000 | |
---|---|---|
committer | 2019-10-02 08:05:50 +0000 | |
commit | 880da0424c82085d623dd73ff0962f810f09116e (patch) | |
tree | 6cc30ce84096b1664abb9687d387fd187a2c9718 /usr.bin/ssh/ssh-keygen.c | |
parent | Remove references to "aucat socket". (diff) | |
download | wireguard-openbsd-880da0424c82085d623dd73ff0962f810f09116e.tar.xz wireguard-openbsd-880da0424c82085d623dd73ff0962f810f09116e.zip |
ban empty namespace strings for sshsig; spotted by Mantas Mikulėnas
Diffstat (limited to 'usr.bin/ssh/ssh-keygen.c')
-rw-r--r-- | usr.bin/ssh/ssh-keygen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/ssh-keygen.c b/usr.bin/ssh/ssh-keygen.c index 866072e6bc5..5600193a0b5 100644 --- a/usr.bin/ssh/ssh-keygen.c +++ b/usr.bin/ssh/ssh-keygen.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh-keygen.c,v 1.352 2019/09/29 16:31:57 jmc Exp $ */ +/* $OpenBSD: ssh-keygen.c,v 1.353 2019/10/02 08:05:50 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -3012,7 +3012,7 @@ main(int argc, char **argv) argc -= optind; if (sign_op != NULL) { - if (cert_principals == NULL) { + if (cert_principals == NULL && *cert_principals == '\0') { error("Too few arguments for sign/verify: " "missing namespace"); exit(1); |