summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2001-03-22 01:16:02 +0000
committermillert <millert@openbsd.org>2001-03-22 01:16:02 +0000
commit25d42aec97da83448415d933e5a5e42143b68d5a (patch)
treed7e13566ce3a7da3a5157d132d95d181631c39f6
parentGet pmap->cpus_using before the pmap structure is touched. Besides, we (diff)
downloadwireguard-openbsd-25d42aec97da83448415d933e5a5e42143b68d5a.tar.xz
wireguard-openbsd-25d42aec97da83448415d933e5a5e42143b68d5a.zip
Fix thinko in kn_do_query error checking; angelos OK'd
-rw-r--r--lib/libkeynote/sample-app.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libkeynote/sample-app.c b/lib/libkeynote/sample-app.c
index e270656182d..79cf874f401 100644
--- a/lib/libkeynote/sample-app.c
+++ b/lib/libkeynote/sample-app.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sample-app.c,v 1.2 2001/03/08 21:50:12 angelos Exp $ */
+/* $OpenBSD: sample-app.c,v 1.3 2001/03/22 01:16:02 millert Exp $ */
/*
* The author of this code is Angelos D. Keromytis (angelos@dsl.cis.upenn.edu)
*
@@ -466,7 +466,7 @@ main(int argc, char **argv)
j = kn_do_query(sessionid, returnvalues, NUM_RETURN_VALUES);
if (j == -1)
{
- switch (j)
+ switch (keynote_errno)
{
case ERROR_MEMORY:
fprintf(stderr, "Out of memory while performing authorization "