]> sjero.net Git - wget/commitdiff
Set sock variable to -1 if no persistent conn exists
authorTomas Hozza <thozza@redhat.com>
Thu, 11 Jul 2013 11:22:43 +0000 (13:22 +0200)
committerGiuseppe Scrivano <gscrivano@gnu.org>
Thu, 11 Jul 2013 18:50:42 +0000 (20:50 +0200)
Wget should set sock variable to -1 if no persistent
connection exists. Function persistent_available_p()
tests persistent connection but if test_socket_open()
fails it closes the socket but will not set sock variable
to -1. After returning from persistent_available_p()
it is possible that sock has still value of already
closed connection.

Signed-off-by: Tomas Hozza <thozza@redhat.com>

No differences found