-/* $OpenBSD: sshsig.c,v 1.33 2023/09/06 23:18:15 djm Exp $ */
+/* $OpenBSD: sshsig.c,v 1.34 2023/12/08 09:18:39 markus Exp $ */
/*
* Copyright (c) 2019 Google LLC
*
if (ret == 0) {
if (nprincipals == 0)
ret = SSH_ERR_KEY_NOT_FOUND;
+ if (nprincipalsp != 0)
+ *nprincipalsp = nprincipals;
if (principalsp != NULL) {
*principalsp = principals;
principals = NULL; /* transferred */
- }
- if (nprincipalsp != 0) {
- *nprincipalsp = nprincipals;
nprincipals = 0;
}
}