=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/sshsig.c,v retrieving revision 1.26 retrieving revision 1.27 diff -u -r1.26 -r1.27 --- src/usr.bin/ssh/sshsig.c 2021/11/28 07:21:26 1.26 +++ src/usr.bin/ssh/sshsig.c 2022/01/05 04:02:42 1.27 @@ -1,4 +1,4 @@ -/* $OpenBSD: sshsig.c,v 1.26 2021/11/28 07:21:26 djm Exp $ */ +/* $OpenBSD: sshsig.c,v 1.27 2022/01/05 04:02:42 djm Exp $ */ /* * Copyright (c) 2019 Google LLC * @@ -919,7 +919,7 @@ } /* Check whether options preclude the use of this key */ - if (sigopts->namespaces != NULL && + if (sigopts->namespaces != NULL && sig_namespace != NULL && match_pattern_list(sig_namespace, sigopts->namespaces, 0) != 1) { error("%s:%lu: key is not permitted for use in signature " "namespace \"%s\"", path, linenum, sig_namespace);