diff options
author | Michael Adam <obnox@samba.org> | 2013-03-15 12:34:01 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2014-12-13 01:21:02 +0100 |
commit | 308305d82754087f856abd8725b6930ea0676cd7 (patch) | |
tree | b55290aaed17ab4bb232cbdbdf019319c9066603 /src/child.c | |
parent | ab6255393d7a983ae3d008f13c1350cf56d32c33 (diff) | |
download | tinyproxy-308305d82754087f856abd8725b6930ea0676cd7.tar.gz tinyproxy-308305d82754087f856abd8725b6930ea0676cd7.zip |
BB#110 secure the hashmaps by adding a seed
Based on a patch provided by gpernot@praksys.org on bugzilla.
Signed-off-by: Michael Adam <obnox@samba.org>
Diffstat (limited to '')
-rw-r--r-- | src/child.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/child.c b/src/child.c index fefffa6..2c4dc22 100644 --- a/src/child.c +++ b/src/child.c @@ -200,6 +200,7 @@ static void child_main (struct child_s *ptr) } ptr->connects = 0; + srand(time(NULL)); /* * We have to wait for connections on multiple fds, |