From 8ad869352ccbc1f8149103c20153c056726463ae Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Sun, 28 Apr 2013 16:59:18 +0200 Subject: [PATCH] small tls fix --- coreapi/bellesip_sal/sal_impl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreapi/bellesip_sal/sal_impl.c b/coreapi/bellesip_sal/sal_impl.c index b0bf517ac..876d572e2 100644 --- a/coreapi/bellesip_sal/sal_impl.c +++ b/coreapi/bellesip_sal/sal_impl.c @@ -578,7 +578,7 @@ static void set_tls_properties(Sal *ctx){ if (!ctx->tls_verify) verify_exceptions=BELLE_SIP_TLS_LISTENING_POINT_BADCERT_ANY_REASON; else if (!ctx->tls_verify_cn) verify_exceptions=BELLE_SIP_TLS_LISTENING_POINT_BADCERT_CN_MISMATCH; - belle_sip_tls_listening_point_set_root_ca(tlp,ctx->root_ca); + if (ctx->root_ca) belle_sip_tls_listening_point_set_root_ca(tlp,ctx->root_ca); belle_sip_tls_listening_point_set_verify_exceptions(tlp,verify_exceptions); } }