diff options
author | Matt Johnston <matt@ucc.asn.au> | 2013-10-21 22:50:52 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2013-10-21 22:50:52 +0800 |
commit | 175cca189c0f004ab8f6e11677e3bf07d05ee964 (patch) | |
tree | d45465bd21f41825086e7cbecc96279bb735c53b | |
parent | 128a0432a143095e1331e13d2571a09b95709c29 (diff) | |
download | dropbear-175cca189c0f004ab8f6e11677e3bf07d05ee964.tar.gz |
Fix shadowed "ret" variable
-rw-r--r-- | random.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -81,14 +81,14 @@ process_file(hash_state *hs, const char *filename, unsigned char readbuf[4096]; if (!already_blocked) { - int ret; + int res; struct timeval timeout = { .tv_sec = 2, .tv_usec = 0}; fd_set read_fds; FD_ZERO(&read_fds); FD_SET(readfd, &read_fds); - ret = select(readfd + 1, &read_fds, NULL, NULL, &timeout); - if (ret == 0) + res = select(readfd + 1, &read_fds, NULL, NULL, &timeout); + if (res == 0) { dropbear_log(LOG_WARNING, "Warning: Reading the randomness source '%s' seems to have blocked.\nYou may need to find a better entropy source.", filename); already_blocked = 1; |