Peng Haitao f6da27e536 bindresvport() uses two static variables port and startport which are not
protected. It is not safe when in multithread circumstance.

bindresvport() select a port number from the range 512 to 1023, when in
multithread circumstance, the port may be 1024. So the static variables will be
protected.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Reviewed-by: Carlos O'Donell <carlos@systemhalted.org>
2012-11-19 02:05:12 -05:00
..
2012-05-10 20:19:53 +02:00
2012-05-10 20:19:53 +02:00
2012-05-10 20:19:53 +02:00
2012-05-10 20:19:53 +02:00
2012-05-10 20:19:53 +02:00
2012-05-10 20:19:53 +02:00
2012-05-10 20:19:53 +02:00
2012-05-10 20:19:53 +02:00
2012-05-10 20:19:53 +02:00
2012-05-10 20:19:53 +02:00
2012-05-10 20:19:53 +02:00
2001-08-30 08:27:57 +00:00
2012-05-10 20:19:53 +02:00
2012-05-10 20:19:53 +02:00
2012-05-10 20:19:53 +02:00
2012-05-10 20:19:53 +02:00
2012-05-10 20:19:53 +02:00
2012-05-10 20:19:53 +02:00
2012-05-10 20:19:53 +02:00
2012-05-10 20:19:53 +02:00
2012-05-10 20:19:53 +02:00
2012-05-10 20:19:53 +02:00
2012-05-10 20:19:53 +02:00
2012-07-06 00:37:42 -04:00
2012-05-10 20:19:53 +02:00
2012-05-10 20:19:53 +02:00
2012-05-10 20:19:53 +02:00
2010-08-24 11:56:51 -07:00
2012-05-10 20:19:53 +02:00
2012-05-10 20:19:53 +02:00
2012-05-10 20:19:53 +02:00
2012-05-10 20:19:53 +02:00
2012-05-10 20:19:53 +02:00
2012-05-10 20:19:53 +02:00
2012-05-21 21:34:54 +02:00
2012-05-10 20:19:53 +02:00
2012-05-10 20:19:53 +02:00
2012-05-10 20:19:53 +02:00
2012-05-10 20:19:53 +02:00
2012-05-10 20:19:53 +02:00
2002-10-14 18:10:15 +00:00
2004-09-28 23:08:14 +00:00
2012-05-21 21:34:54 +02:00
2012-05-10 20:19:53 +02:00
2012-05-10 20:19:53 +02:00
2012-05-10 20:19:53 +02:00
2012-05-10 20:19:53 +02:00
2012-05-10 20:19:53 +02:00
2012-05-10 20:19:53 +02:00
2012-05-10 20:19:53 +02:00
2012-05-10 20:19:53 +02:00