Module: kamailio Branch: master Commit: 898cdbb4e37f8451c19b7be676d49e3aacd404a2 URL: https://github.com/kamailio/kamailio/commit/898cdbb4e37f8451c19b7be676d49e3aacd404a2
Author: Daniel-Constantin Mierla <[email protected]> Committer: Daniel-Constantin Mierla <[email protected]> Date: 2026-01-27T13:25:20+01:00 xcap_client: check the return for curl_global_init() --- Modified: src/modules/xcap_client/xcap_client.c --- Diff: https://github.com/kamailio/kamailio/commit/898cdbb4e37f8451c19b7be676d49e3aacd404a2.diff Patch: https://github.com/kamailio/kamailio/commit/898cdbb4e37f8451c19b7be676d49e3aacd404a2.patch --- diff --git a/src/modules/xcap_client/xcap_client.c b/src/modules/xcap_client/xcap_client.c index 602d74cea5e..e90269c3a6b 100644 --- a/src/modules/xcap_client/xcap_client.c +++ b/src/modules/xcap_client/xcap_client.c @@ -148,7 +148,10 @@ static int mod_init(void) xcap_dbf.close(xcap_db); xcap_db = NULL; - curl_global_init(CURL_GLOBAL_ALL); + if(curl_global_init(CURL_GLOBAL_ALL)) { + LM_ERR("failed to init global curl\n"); + return -1; + } if(periodical_query) { register_timer(query_xcap_update, 0, query_period); _______________________________________________ Kamailio - Development Mailing List -- [email protected] To unsubscribe send an email to [email protected] Important: keep the mailing list in the recipients, do not reply only to the sender!
