X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=mc-core%2Fmc%2Flocal%2Freconfig_reject.h;h=1c4bb467e065c5b6ee4f11ffe1a8bf56363b5942;hb=1634fd9603ab6184f7d90ad6be6ec8a8707288ea;hp=951321c8ff8dd9a1b2eb3063c47a009da84aa2e8;hpb=31d238a2cba18b87e05a7d9b4820db2c5186c658;p=ric-app%2Fmc.git diff --git a/mc-core/mc/local/reconfig_reject.h b/mc-core/mc/local/reconfig_reject.h index 951321c..1c4bb46 100644 --- a/mc-core/mc/local/reconfig_reject.h +++ b/mc-core/mc/local/reconfig_reject.h @@ -23,6 +23,9 @@ #include "packet.h" + +#include "/usr/local/include/protobuf-c/protobuf-c.h" + struct _reconfig_reject { gs_uint64_t timestamp_ms; gs_sp_t gnb_id; @@ -44,10 +47,13 @@ static inline gs_retval_t get_reconfig_reject__timestamp_ms(struct packet *p, gs } static inline gs_retval_t get_reconfig_reject__gnb_id(struct packet *p, struct gs_string *t){ -t->data = ((struct _reconfig_reject *)(p->record.packed.values))->gnb_id; - t->length = strlen(t->data); t->owner=0; - return 0; + t->data = ((struct _reconfig_reject *)(p->record.packed.values))->gnb_id; + if( t->data == NULL){ + t->length=0; + return 0; + } + t->length = strlen(t->data); } static inline gs_retval_t get_reconfig_reject__id_MeNB_UE_X2AP_ID(struct packet *p, gs_int64_t *t){