Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set errno to 0 before strtol #151

Merged
merged 1 commit into from
Mar 20, 2023
Merged

Set errno to 0 before strtol #151

merged 1 commit into from
Mar 20, 2023

Conversation

irisjae
Copy link
Contributor

@irisjae irisjae commented Mar 20, 2023

Refer to 'NOTES' section of https://man7.org/linux/man-pages/man3/strtol.3.html

Fixes cases where calls to the PL/pgSQL functions http_set_curlopt() and http() keep failing after errno is set. In such cases, "invalid integer provided for 'CURLOPT_XXX'" is reported in the logs, but the provided integer is in fact valid.

Refer to https://man7.org/linux/man-pages/man3/strtol.3.html
Fixes cases where calls to the PL/pgSQL functions http_set_curlopt() and http() keep failing after errno is set
@pramsey pramsey merged commit 1da5be2 into pramsey:master Mar 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants