summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2014-06-27 07:01:22 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2014-06-27 07:01:22 +0000
commit48c687e55fb989b4a3687ace8df7a2ab15e1ca4f (patch)
tree30c47a39c47d8019802504beed72ba0656ac752e /lib
parent5df2c8c394578b74b3f995f54ed453951cc5716e (diff)
save_errno botch; spotted by miod
Diffstat (limited to 'lib')
-rw-r--r--lib/libssl/src/crypto/err/err.c4
1 files changed, 2 insertions, 2 deletions
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