Navigation


Changeset 109:a522268ec95b in freeDiameter for libfreeDiameter/dictionary.c


Ignore:
Timestamp:
Dec 8, 2009, 2:03:44 PM (14 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Less permissive in fd_dict_new

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfreeDiameter/dictionary.c

    r43 r109  
    13841384        }
    13851385       
     1386        /* We have to check that the new values are not equal to the sentinels */
     1387        if (type == DICT_VENDOR) {
     1388                CHECK_PARAMS( ((struct dict_vendor_data *)data)->vendor_id != 0   );
     1389        }
     1390        if (type == DICT_APPLICATION) {
     1391                CHECK_PARAMS( ((struct dict_application_data *)data)->application_id != 0   );
     1392        }
     1393       
    13861394        /* Parameters are valid, create the new object */
    13871395        CHECK_MALLOC(  new = malloc(sizeof(struct dict_object))  );
Note: See TracChangeset for help on using the changeset viewer.