Navigation


Changeset 753:71833fa5e35f in freeDiameter


Ignore:
Timestamp:
Sep 24, 2011, 8:00:30 PM (13 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

allow applications to create empty AVP also

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfdproto/messages.c

    r752 r753  
    12201220        /* Duplicate an octetstring if needed. */
    12211221        if (type == AVP_TYPE_OCTETSTRING) {
    1222                 if (value->os.len) {
    1223                         CHECK_MALLOC(  avp->avp_storage.os.data = os0dup(value->os.data, value->os.len)  );
    1224                         avp->avp_mustfreeos = 1;
    1225                 } else {
    1226                         avp->avp_storage.os.data = NULL;
    1227                 }
     1222                CHECK_MALLOC(  avp->avp_storage.os.data = os0dup(value->os.data, value->os.len)  );
     1223                avp->avp_mustfreeos = 1;
    12281224        }
    12291225       
Note: See TracChangeset for help on using the changeset viewer.