summaryrefslogtreecommitdiff
path: root/src/child.c
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2013-03-15 12:34:01 +0100
committerMichael Adam <obnox@samba.org>2014-12-13 01:21:02 +0100
commit308305d82754087f856abd8725b6930ea0676cd7 (patch)
treeb55290aaed17ab4bb232cbdbdf019319c9066603 /src/child.c
parentab6255393d7a983ae3d008f13c1350cf56d32c33 (diff)
downloadtinyproxy-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.c1
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,