summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2016-11-22 21:54:02 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2016-11-22 21:54:02 +0000
commit48c1a7efd3c2c74bdb7ad7e4e70d26d687277a8a (patch)
tree70117171dd34755fe6bf4590c94b46bdb726a36e /usr.sbin
parent4ca3b04b5196908f789af564c6b3a26370459619 (diff)
Restore previous errno after log_warn*() to make sure that it never
alters it. OK mlarkin@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/vmd/log.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/vmd/log.c b/usr.sbin/vmd/log.c
index acfef5ccff3..713d3d3f0c3 100644
--- a/usr.sbin/vmd/log.c
+++ b/usr.sbin/vmd/log.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: log.c,v 1.4 2016/10/31 02:57:27 guenther Exp $ */
+/* $OpenBSD: log.c,v 1.5 2016/11/22 21:54:01 reyk Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -130,6 +130,8 @@ log_warn(const char *emsg, ...)
}
va_end(ap);
}
+
+ errno = saved_errno;
}
void