Skip to content

Commit b674691

Browse files
committed
common BUGFIX missing return check
1 parent 95bae2d commit b674691

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/common.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,16 +1006,16 @@ np_op_export_url(const struct ly_ctx *ly_ctx, const char *url, struct lyd_node *
10061006
r = curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L);
10071007
}
10081008
if (!r) {
1009-
curl_easy_setopt(curl, CURLOPT_READFUNCTION, url_readdata);
1009+
r = curl_easy_setopt(curl, CURLOPT_READFUNCTION, url_readdata);
10101010
}
10111011
if (!r) {
1012-
curl_easy_setopt(curl, CURLOPT_READDATA, &mem_data);
1012+
r = curl_easy_setopt(curl, CURLOPT_READDATA, &mem_data);
10131013
}
10141014
if (!r) {
1015-
curl_easy_setopt(curl, CURLOPT_INFILESIZE, (long)mem_data.size);
1015+
r = curl_easy_setopt(curl, CURLOPT_INFILESIZE, (long)mem_data.size);
10161016
}
10171017
if (!r) {
1018-
curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, curl_buffer);
1018+
r = curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, curl_buffer);
10191019
}
10201020
if (r) {
10211021
ERR("Failed to set a curl option.");

0 commit comments

Comments
 (0)