commit | 1e82a14c346a5c5ffc41d83bf486c73d70fe4fdb | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Tue Jan 29 11:08:06 2019 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Tue Jan 29 11:08:06 2019 +0100 |
tree | c904a0ed59cc8d48fbeca2a152818e60133e92ac | |
parent | 4b2fd9bf71fbccd39bea4f4b46824b18d5575f93 [diff] |
CLEANUP: peers: factor the error handling code in peer_treet_updatemsg() The error handling code was extremely repetitive and error-prone due to the numerous copy-pastes, some involving unlocks or free. Let's factor this out. The code could be further simplified, but 12 locations were already cleaned without taking risks.