Commit Diff


commit - ed61de840a1b0c8cd8fb2ab4645122836f037715
commit + 9b08831005bd478931d7a57539f9e20e6b1e2382
blob - a0c6397fec1ebb3b54d13b2f26ab560033d3712d
blob + fc7dd97a56817f082c5c083b6e9b5596ab082e70
--- client.c
+++ client.c
@@ -470,10 +470,15 @@ np_error(uint16_t tag, const char *errstr)
 static void
 np_errno(uint16_t tag)
 {
+	int saved_errno;
 	char buf[64];
 
+	saved_errno = errno;
+
 	strerror_r(errno, buf, sizeof(buf));
 	np_error(tag, buf);
+
+	errno = saved_errno;
 }
 
 static void