Unverified Commit 97b0d5b3 authored by Shawn Webb's avatar Shawn Webb
Browse files

libpushover: silence libcurl and fail on error

We don't need libcurl to show status/progress. But we do want libcurl to
fail when there's an error.
Signed-off-by: Shawn Webb's avatarShawn Webb <shawn.webb@hardenedbsd.org>
parent 64dbd4a9
......@@ -236,6 +236,8 @@ pushover_submit_message(pushover_ctx_t *ctx, pushover_message_t *msg)
if (post_str == NULL)
goto end;
curl_easy_setopt(curl, CURLOPT_POSTFIELDS, post_str);
curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 1);
curl_easy_setopt(curl, CURLOPT_FAILONERROR, 1);
curl_code = curl_easy_perform(curl);
res = (curl_code == CURLE_OK);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment