Changeset 3003 for pjproject/trunk
- Timestamp:
- Nov 10, 2009 5:09:44 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip/sip_parser.c
r2985 r3003 1933 1933 { 1934 1934 pjsip_require_hdr *hdr; 1935 pj_bool_t new_hdr = (ctx->rdata->msg_info.require == NULL); 1935 pj_bool_t new_hdr = (ctx->rdata==NULL || 1936 ctx->rdata->msg_info.require == NULL); 1936 1937 1937 1938 if (ctx->rdata && ctx->rdata->msg_info.require) { … … 1939 1940 } else { 1940 1941 hdr = pjsip_require_hdr_create(ctx->pool); 1941 ctx->rdata->msg_info.require = hdr; 1942 if (ctx->rdata) 1943 ctx->rdata->msg_info.require = hdr; 1942 1944 } 1943 1945 … … 1982 1984 { 1983 1985 pjsip_supported_hdr *hdr; 1984 pj_bool_t new_hdr = (ctx->rdata->msg_info.supported == NULL); 1986 pj_bool_t new_hdr = (ctx->rdata==NULL || 1987 ctx->rdata->msg_info.supported == NULL); 1985 1988 1986 1989 if (ctx->rdata && ctx->rdata->msg_info.supported) { … … 1988 1991 } else { 1989 1992 hdr = pjsip_supported_hdr_create(ctx->pool); 1990 ctx->rdata->msg_info.supported = hdr; 1993 if (ctx->rdata) 1994 ctx->rdata->msg_info.supported = hdr; 1991 1995 } 1992 1996
Note: See TracChangeset
for help on using the changeset viewer.