We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 032617b commit c88e815Copy full SHA for c88e815
http.c
@@ -786,7 +786,9 @@ set_curlopt(CURL* handle, const http_curlopt *opt)
786
/* Argument is a long */
787
else if (opt->curlopt_type == CURLOPT_LONG)
788
{
789
- long value_long = strtol(opt->curlopt_val, NULL, 10);
+ long value_long;
790
+ errno = 0;
791
+ value_long = strtol(opt->curlopt_val, NULL, 10);
792
if ( errno == EINVAL || errno == ERANGE )
793
elog(ERROR, "invalid integer provided for '%s'", opt->curlopt_str);
794
0 commit comments