- Timestamp:
- Feb 2, 2006 9:14:29 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip/sip_transaction.c
r127 r130 975 975 pj_status_t status; 976 976 977 PJ_ASSERT_RETURN(tdata!=NULL && p_tsx!=NULL, PJ_EINVAL); 977 /* Validate arguments. */ 978 PJ_ASSERT_RETURN(tdata && tdata->msg && p_tsx, PJ_EINVAL); 979 PJ_ASSERT_RETURN(tdata->msg->type == PJSIP_REQUEST_MSG, 980 PJSIP_ENOTREQUESTMSG); 981 982 /* Method MUST NOT be ACK! */ 983 PJ_ASSERT_RETURN(tdata->msg->line.req.method.id != PJSIP_ACK_METHOD, 984 PJ_EINVALIDOP); 978 985 979 986 /* Keep shortcut */ … … 1098 1105 struct tsx_lock_data lck; 1099 1106 1100 PJ_ASSERT_RETURN(rdata!=NULL && p_tsx!=NULL, PJ_EINVAL); 1107 /* Validate arguments. */ 1108 PJ_ASSERT_RETURN(rdata && rdata->msg_info.msg && p_tsx, PJ_EINVAL); 1101 1109 1102 1110 /* Keep shortcut to message */ … … 1105 1113 /* Make sure this is a request message. */ 1106 1114 PJ_ASSERT_RETURN(msg->type == PJSIP_REQUEST_MSG, PJSIP_ENOTREQUESTMSG); 1115 1116 /* Make sure method is not ACK */ 1117 PJ_ASSERT_RETURN(msg->line.req.method.id != PJSIP_ACK_METHOD, 1118 PJ_EINVALIDOP); 1107 1119 1108 1120 /* Make sure CSeq header is present. */
Note: See TracChangeset
for help on using the changeset viewer.