commit | 158b6cf102d68f003f323a2f381239fcbb665a7e | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Mon May 02 17:45:12 2022 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Mon May 02 17:47:31 2022 +0200 |
tree | 5e0a5ddb50b1762fbc0062143c88be3e8664e464 | |
parent | 04e9acaef4945534cf4ea639f596368a032a0a37 [diff] |
CLEANUP: protocol: make sure the connect_* functions always receive a dst Some of the protocol-level ->connect() functions currently dereference the connection's destination address while others test it and return an error. There's normally no more non-bogus code path that calls such functions without a valid destination address on the connection, so let's unify these functions and just place a BUG_ON() there, and drop the useless test that's supposed to return an internal error.