Skip to content

Commit

Permalink
Merge pull request #3306 from cgwalters/curl-assert
Browse files Browse the repository at this point in the history
curl: Assert that curl_multi_assign worked
  • Loading branch information
cgwalters authored Sep 18, 2024
2 parents 2945165 + 472d9d4 commit 05442f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libostree/ostree-fetcher-curl.c
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,8 @@ addsock (curl_socket_t s, CURL *easy, int action, OstreeFetcher *fetcher)
fdp->refcount = 1;
fdp->fetcher = fetcher;
setsock (fdp, s, action, fetcher);
curl_multi_assign (fetcher->multi, s, fdp);
CURLMcode rc = curl_multi_assign (fetcher->multi, s, fdp);
g_assert_cmpint (rc, ==, CURLM_OK);
g_hash_table_add (fetcher->sockets, fdp);
}

Expand Down

0 comments on commit 05442f2

Please sign in to comment.