mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-29 13:28:10 +00:00
Fix setting of errno when gotdata() fails.
This commit is contained in:
parent
6e4ec91801
commit
ad104a3e47
@ -583,7 +583,7 @@ getentropy_fallback(void *buf, size_t len)
|
|||||||
errno = save_errno;
|
errno = save_errno;
|
||||||
ret = 0; /* satisfied */
|
ret = 0; /* satisfied */
|
||||||
} else {
|
} else {
|
||||||
errno == EIO;
|
errno = EIO;
|
||||||
}
|
}
|
||||||
done:
|
done:
|
||||||
sudo_digest_free(ctx);
|
sudo_digest_free(ctx);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user