aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2013-02-12 14:27:06 +0000
committerAnders Broman <anders.broman@ericsson.com>2013-02-12 14:27:06 +0000
commited5045605ac64346c7ca8d73882d557680e5e8f3 (patch)
treece22402bf3b3e12f0f14a066c1ea360b7ee531d9 /epan
parenta3ef2a7293537f4eabdeb82a947c4d9f6e860079 (diff)
SDP in 180 ringing is also SDP_EXCHANGE_ANSWER_ACCEPT.
Without this patch I get a crash on Linux and lots of STATUS_ACCESS_VIOLATION and a single STATUS_INTEGER_DIVIDE_BY_ZERO on windows. svn path=/trunk/; revision=47638
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-sip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-sip.c b/epan/dissectors/packet-sip.c
index 352642d077..18ebdd7a50 100644
--- a/epan/dissectors/packet-sip.c
+++ b/epan/dissectors/packet-sip.c
@@ -3143,7 +3143,7 @@ dissect_sip_common(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tr
setup_sdp_transport(next_tvb, pinfo, SDP_EXCHANGE_OFFER, pinfo->fd->num);
} else if (line_type == STATUS_LINE) {
setup_sdp_transport(next_tvb, pinfo,
- (stat_info->response_code == 200) ? SDP_EXCHANGE_ANSWER_ACCEPT : SDP_EXCHANGE_ANSWER_REJECT,
+ ((stat_info->response_code == 200)||(stat_info->response_code == 180)) ? SDP_EXCHANGE_ANSWER_ACCEPT : SDP_EXCHANGE_ANSWER_REJECT,
request_for_response);
}
} else {