From bb93254617e09b88edab5261df7fcfa9af136131 Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Fri, 27 Jun 2014 07:01:21 +0000 Subject: save_errno botch; spotted by miod --- src/lib/libcrypto/err/err.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/libcrypto/err/err.c') diff --git a/src/lib/libcrypto/err/err.c b/src/lib/libcrypto/err/err.c index 0b26430dbd..ee6d91f465 100644 --- a/src/lib/libcrypto/err/err.c +++ b/src/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 -- cgit v1.2.3-55-g6feb