Mercurial > hg > freeDiameter-proposed
changeset 1565:4971c8c8879e
dict_rfc5777: do not add empty content rules
Coverity CID 349447
author | Thomas Klausner <wiz@gatalith.at> |
---|---|
date | Tue, 22 Jun 2021 21:28:01 +0200 |
parents | a3da9370c03f |
children | 5643e58cd16d |
files | extensions/dict_rfc5777/dict_rfc5777.c |
diffstat | 1 files changed, 2 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/extensions/dict_rfc5777/dict_rfc5777.c Tue Jun 22 21:18:43 2021 +0200 +++ b/extensions/dict_rfc5777/dict_rfc5777.c Tue Jun 22 21:28:01 2021 +0200 @@ -325,12 +325,9 @@ AVP_TYPE_GROUPED /* base type of data */ }; - struct local_rules_definition rules[] = - { //empty?? - }; - + // the contents depend on the values of other AVPs and can not be defined + // in the general case, so do not assign rules CHECK_dict_new( DICT_AVP, &data , NULL, &avp); - PARSE_loc_rules( rules, avp ); } /* QoS-Profile-Template - RFC 5777 */