commit | 95e4d2c2a0f5c66d5c191d28b7e09ca9d0376cab | [log] [tgz] |
---|---|---|
author | Andreea Costinas <acostinas@google.com> | Tue Jun 08 14:05:02 2021 +0200 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Jun 22 15:52:11 2021 +0000 |
tree | ac75e4e94cf1c6c37833513159b83d64b3de9104 | |
parent | 5fb1b3b57380ef8a9782bb316d6363f9a4e6c29e [diff] |
tlsdate: Reset errno in validate_port() tlsdate is failing with the "invalid port" error because the method validating the port doesn't reset errno before trying to convert the port value from string to integer. When errno is being set somewhere else in the code, it causes the port validation to fail. BUG=b:190205144 TEST=deployed change and ran tast test SystemProxyForSystemServices which runs tlsdate behind a proxy Change-Id: I2d75019924d13df5239d9506f974fe84541f1062 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/tlsdate/+/2945182 Reviewed-by: Jorge Lucangeli Obes <jorgelo@chromium.org> Tested-by: Andreea-Elena Costinas <acostinas@google.com> Commit-Queue: Andreea-Elena Costinas <acostinas@google.com> (cherry picked from commit 8b0e7603cb5fd7924c9e99b7d26ad8b716fbada7) Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/tlsdate/+/2972877