Skip to content

Commit 134783b

Browse files
author
roman
committed
session server tls UPDATE check curl return value
1 parent b7bfa65 commit 134783b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/session_server_tls.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1073,7 +1073,10 @@ nc_server_tls_curl_fetch(struct nc_session *session, CURL *handle, const char *u
10731073
}
10741074

10751075
/* set err buf */
1076-
curl_easy_setopt(handle, CURLOPT_ERRORBUFFER, err_buf);
1076+
if (curl_easy_setopt(handle, CURLOPT_ERRORBUFFER, err_buf)) {
1077+
ERR(session, "Setting CURL error buffer option failed.");
1078+
return -1;
1079+
}
10771080

10781081
/* download */
10791082
if (curl_easy_perform(handle)) {

0 commit comments

Comments
 (0)