Commit 65d16814 authored by Dong Anyuan's avatar Dong Anyuan

Fix Coverity Scan CID 60387 (Using uninitialized value ulp. Field ulp.hUlp is...

Fix Coverity Scan CID 60387 (Using uninitialized value ulp. Field ulp.hUlp is uninitialized when calling nwGtpv1uSetUlpEntity.)
parent db137bf1
...@@ -882,7 +882,7 @@ int gtpv1u_eNB_init(void) { ...@@ -882,7 +882,7 @@ int gtpv1u_eNB_init(void) {
* nw-gtpv1u stack. * nw-gtpv1u stack.
*/ */
ulp.ulpReqCallback = gtpv1u_eNB_process_stack_req; ulp.ulpReqCallback = gtpv1u_eNB_process_stack_req;
memset((void *)&(ulp.hUlp), 0, sizeof(NwGtpv1uUlpHandleT));
if ((rc = nwGtpv1uSetUlpEntity(RC.gtpv1u_data_g->gtpv1u_stack, &ulp)) != NW_GTPV1U_OK) { if ((rc = nwGtpv1uSetUlpEntity(RC.gtpv1u_data_g->gtpv1u_stack, &ulp)) != NW_GTPV1U_OK) {
LOG_E(GTPU, "nwGtpv1uSetUlpEntity: %x", rc); LOG_E(GTPU, "nwGtpv1uSetUlpEntity: %x", rc);
return -1; return -1;
......
Markdown is supported
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