summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2014-06-27 07:01:21 +0000
committerderaadt <deraadt@openbsd.org>2014-06-27 07:01:21 +0000
commitc4ba2b38467e025771a71d30c514004e4ec3b6eb (patch)
tree98b5e9d2773f2f62da0d435d794aadaf0d26d8fa
parenthand-KNF macro the do { } while loops (diff)
downloadwireguard-openbsd-c4ba2b38467e025771a71d30c514004e4ec3b6eb.tar.xz
wireguard-openbsd-c4ba2b38467e025771a71d30c514004e4ec3b6eb.zip
save_errno botch; spotted by miod
-rw-r--r--lib/libcrypto/err/err.c4
-rw-r--r--lib/libssl/src/crypto/err/err.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/libcrypto/err/err.c b/lib/libcrypto/err/err.c
index 0b26430dbd7..ee6d91f465e 100644
--- a/lib/libcrypto/err/err.c
+++ b/lib/libcrypto/err/err.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: err.c,v 1.35 2014/06/27 06:07:01 deraadt Exp $ */
+/* $OpenBSD: err.c,v 1.36 2014/06/27 07:01:21 deraadt Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -713,7 +713,7 @@ ERR_put_error(int lib, int func, int reason, const char *file, int line)
es->err_file[es->top] = file;
es->err_line[es->top] = line;
err_clear_data(es, es->top);
- save_errno = errno;
+ errno = save_errno;
}
void
diff --git a/lib/libssl/src/crypto/err/err.c b/lib/libssl/src/crypto/err/err.c
index 0b26430dbd7..ee6d91f465e 100644
--- a/lib/libssl/src/crypto/err/err.c
+++ b/lib/libssl/src/crypto/err/err.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: err.c,v 1.35 2014/06/27 06:07:01 deraadt Exp $ */
+/* $OpenBSD: err.c,v 1.36 2014/06/27 07:01:21 deraadt Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -713,7 +713,7 @@ ERR_put_error(int lib, int func, int reason, const char *file, int line)
es->err_file[es->top] = file;
es->err_line[es->top] = line;
err_clear_data(es, es->top);
- save_errno = errno;
+ errno = save_errno;
}
void