summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2021-11-28 08:10:18 +0100
committerDamien Miller <djm@mindrot.org>2021-11-28 08:28:08 +0100
commit50bea24a9a9bdebad327c76e700def3261f5694e (patch)
tree57b90687bb02aec1ed03f8b29e7f4fdb3bfbe20b
parentCorrect ifdef to activate poll() only if needed. (diff)
downloadopenssh-50bea24a9a9bdebad327c76e700def3261f5694e.tar.xz
openssh-50bea24a9a9bdebad327c76e700def3261f5694e.zip
upstream: missing initialisation for oerrno
OpenBSD-Commit-ID: 05d646bba238080259bec821c831a6f0b48d2a95
-rw-r--r--sshsig.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sshsig.c b/sshsig.c
index bd17d035f..171e13171 100644
--- a/sshsig.c
+++ b/sshsig.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sshsig.c,v 1.24 2021/11/27 07:14:46 djm Exp $ */
+/* $OpenBSD: sshsig.c,v 1.25 2021/11/28 07:10:18 djm Exp $ */
/*
* Copyright (c) 2019 Google LLC
*
@@ -1058,7 +1058,7 @@ sshsig_match_principals(const char *path, const char *principal,
char *found, *line = NULL, **principals = NULL, **tmp;
size_t i, nprincipals = 0, linesize = 0;
u_long linenum = 0;
- int oerrno, r, ret = 0;
+ int oerrno = 0, r, ret = 0;
if (principalsp != NULL)
*principalsp = NULL;