Changeset 1101:40b48a3997a2 in freeDiameter for libfdproto
- Timestamp:
- May 9, 2013, 1:06:03 PM (11 years ago)
- Branch:
- default
- Parents:
- 1098:f38d77f9cfd3 (diff), 1100:4b7192d0ffde (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Phase:
- public
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libfdproto/messages.c
r1098 r1101 1255 1255 return anscb ? EINVAL : 0; /* we associate with requests only */ 1256 1256 1257 CHECK_PARAMS( (anscb == NULL) || (msg->msg_cb.anscb == NULL) ); /* We are not overwrit ting a cb */1258 CHECK_PARAMS( (expirecb == NULL) || (msg->msg_cb.expirecb == NULL) ); /* We are not overwrit ting a cb */1257 CHECK_PARAMS( (anscb == NULL) || (msg->msg_cb.anscb == NULL) ); /* We are not overwriting a cb */ 1258 CHECK_PARAMS( (expirecb == NULL) || (msg->msg_cb.expirecb == NULL) ); /* We are not overwriting a cb */ 1259 1259 1260 1260 /* Associate callback and data with the message, if any */ -
libfdproto/messages.c
r1099 r1101 137 137 DiamId_t msg_src_id; /* Diameter Id of the peer this message was received from. This string is malloc'd and must be freed */ 138 138 size_t msg_src_id_len; /* cached length of this string */ 139 139 struct fd_msg_pmdl msg_pmdl; /* list of permessagedata structures. */ 140 140 }; 141 141 … … 674 674 } 675 675 676 if ((obj->type == MSG_MSG) && (_M(obj)->msg_pmdl.sentinel.o != NULL)) { 677 ((void (*)(struct fd_msg_pmdl *))_M(obj)->msg_pmdl.sentinel.o)(&_M(obj)->msg_pmdl); 678 } 679 676 680 /* free the object */ 677 681 free(obj); … … 1496 1500 1497 1501 return 0; 1502 } 1503 1504 /* Retrieve the location of the pmd list for the message; return NULL if failed */ 1505 struct fd_msg_pmdl * fd_msg_pmdl_get(struct msg * msg) 1506 { 1507 CHECK_PARAMS_DO( CHECK_MSG(msg), return NULL ); 1508 return &msg->msg_pmdl; 1498 1509 } 1499 1510
Note: See TracChangeset
for help on using the changeset viewer.