]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5814
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 5 Mar 2014 19:12:02 +0000 (13:12 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 5 Mar 2014 19:12:02 +0000 (13:12 -0600)
libs/sofia-sip/.update
libs/sofia-sip/libsofia-sip-ua/nta/nta.c

index 7355373f2facfcb21344d3626f0c572f01e8cda0..1ba348e2162d20b46fbfff79eadf21d1c8b71712 100644 (file)
@@ -1 +1 @@
-Thu Mar  6 00:03:14 CDT 2014
+Wed Mar  5 13:11:46 CST 2014
index 358f52afed8c2f54b73df35968f0804d47342a52..1ae6563d43f5d460f3a00f3af2247e807a5e309d 100644 (file)
@@ -2799,6 +2799,10 @@ int sip_content_encoding_Xflate(msg_t *msg, sip_t *sip, int inflate, int check)
        unsigned cseq = sip->sip_cseq ? sip->sip_cseq->cs_seq : 0;
        int ok = !check;
 
+       if (!sip->sip_payload) {
+               return 0;
+       }
+
        if (sip->sip_request) {
                method_name = sip->sip_request->rq_method_name;
        } else if (sip->sip_cseq) {
@@ -2808,7 +2812,7 @@ int sip_content_encoding_Xflate(msg_t *msg, sip_t *sip, int inflate, int check)
        }
 
        if (!ok) {
-               if (sip->sip_content_encoding && sip->sip_content_encoding->k_items && sip->sip_payload) {
+               if (sip->sip_content_encoding && sip->sip_content_encoding->k_items) {
                        const char *val = sip->sip_content_encoding->k_items[0];
                        if (val && (!strcasecmp(val, "gzip") || !strcasecmp(val, "deflate"))) {
                                ok = 1;