From: Todd C. Miller Date: Wed, 22 Aug 2018 16:36:00 +0000 (-0600) Subject: Fix setting of errno when gotdata() fails. X-Git-Tag: SUDO_1_8_25^2~42 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ad104a3e47b62b72add30e946df2ae9c364d9290;p=sudo Fix setting of errno when gotdata() fails. --- 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);