diff dbrandom.c @ 1596:60fceff95858

workaround memory sanitizer FD_ZERO false positives
author Matt Johnston <matt@ucc.asn.au>
date Tue, 06 Mar 2018 21:51:51 +0800
parents 02b226c2675e
children f966834f0f9c
line wrap: on
line diff
--- a/dbrandom.c	Tue Mar 06 21:00:09 2018 +0800
+++ b/dbrandom.c	Tue Mar 06 21:51:51 2018 +0800
@@ -88,7 +88,7 @@
  			timeout.tv_sec  = 2;
  			timeout.tv_usec = 0;
 
-			FD_ZERO(&read_fds);
+			DROPBEAR_FD_ZERO(&read_fds);
 			FD_SET(readfd, &read_fds);
 			res = select(readfd + 1, &read_fds, NULL, NULL, &timeout);
 			if (res == 0)