From ad104a3e47b62b72add30e946df2ae9c364d9290 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Wed, 22 Aug 2018 10:36:00 -0600 Subject: [PATCH] Fix setting of errno when gotdata() fails. --- lib/util/getentropy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util/getentropy.c b/lib/util/getentropy.c index 87e3ec844..0d8aa133d 100644 --- a/lib/util/getentropy.c +++ b/lib/util/getentropy.c @@ -583,7 +583,7 @@ getentropy_fallback(void *buf, size_t len) errno = save_errno; ret = 0; /* satisfied */ } else { - errno == EIO; + errno = EIO; } done: sudo_digest_free(ctx);