X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fdu_app%2Fdu_sys_info_hdl.c;h=ecf04e73f18298cd677859197cd131db513ac9f3;hb=0b405462775bb65021e41dc4494ed38ce3a9c4f4;hp=4974325f6fe9195b1292a3ac622a0e40457a6175;hpb=8ddfeabf3ec06d0be029789983022fdd1bb8c2e6;p=o-du%2Fl2.git diff --git a/src/du_app/du_sys_info_hdl.c b/src/du_app/du_sys_info_hdl.c index 4974325f6..ecf04e73f 100644 --- a/src/du_app/du_sys_info_hdl.c +++ b/src/du_app/du_sys_info_hdl.c @@ -337,8 +337,9 @@ uint8_t BuildCellIdentity(CellIdentity_t *cellIdentity) { DU_LOG("\nERROR --> DU APP: CellIdentity memory allocation failure"); return RFAILED; - } - *cellIdentity->buf = duCfgParam.sib1Params.cellIdentity; + } + memset(cellIdentity->buf, 0, cellIdentity->size); + cellIdentity->buf[4] = duCfgParam.sib1Params.cellIdentity; return ROK; }