hs-v3: Don't BUG() if descriptor is found on SOCKS connection retry
commitcec616a0c8ff060cb722e54342fd30aeab3ad285
authorDavid Goulet <dgoulet@torproject.org>
Tue, 4 Dec 2018 19:27:46 +0000 (4 14:27 -0500)
committerDavid Goulet <dgoulet@torproject.org>
Tue, 4 Dec 2018 19:34:04 +0000 (4 14:34 -0500)
treee614a2b86fc7bb0ca17f3d224532a46d8b7df7cd
parent43bd4d7509ceab2d82a85483f08132e90b1ab10d
hs-v3: Don't BUG() if descriptor is found on SOCKS connection retry

When retrying all SOCKS connection because new directory information just
arrived, do not BUG() if a connection in state AP_CONN_STATE_RENDDESC_WAIT is
found to have a usable descriptor.

There is a rare case when this can happen as detailed in #28669 so the right
thing to do is put that connection back in circuit wait state so the
descriptor can be retried.

Fixes #28669

Signed-off-by: David Goulet <dgoulet@torproject.org>
changes/ticket28669 [new file with mode: 0644]
src/feature/hs/hs_client.c