From 7778fd0de61c4679d70a9cf78cae1ac1b70d9041 Mon Sep 17 00:00:00 2001 From: owen_lu Date: Wed, 21 Jan 2026 16:19:02 +0800 Subject: [PATCH] RDKBDEV-3348:Fix TR069 crash during reboot longrun Reason for change: Sometimes TR069 will crash during reboot longrun, after check, the crash caused by accessing the null pointer. Test Procedure: 1. Config TR069 and connect to ACS server 2. do reboot longrun 3. check if TR069 process crash log exists after reboot Risks: Low Signed-off-by: Owen Lu --- source/util_api/ansc/AnscPlatform/user_openssl.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/util_api/ansc/AnscPlatform/user_openssl.c b/source/util_api/ansc/AnscPlatform/user_openssl.c index e1e8fb48e..ed85e9539 100644 --- a/source/util_api/ansc/AnscPlatform/user_openssl.c +++ b/source/util_api/ansc/AnscPlatform/user_openssl.c @@ -182,6 +182,12 @@ int openssl_load_ca_certificates(int who_calls) ssl_ctx = g_ssl_ctx[who_calls]; + if ( ssl_ctx == NULL ) + { + CcspTraceInfo(("%s:%d ssl_ctx == NULL, return 0\n", __func__, __LINE__)); + return 0; + } + pCACertFiles = AnscCloneString(pCACertFiles); pCACertFile = pCACertFiles;