parser/sdp: more suggestive debug message
authorDaniel-Constantin Mierla <miconda@gmail.com>
Fri, 13 Jul 2012 07:49:16 +0000 (09:49 +0200)
committerDaniel-Constantin Mierla <miconda@gmail.com>
Fri, 13 Jul 2012 07:49:16 +0000 (09:49 +0200)
parser/sdp/sdp.c

index fbd2453..fb51f3f 100644 (file)
@@ -717,9 +717,9 @@ int parse_sdp(struct sip_msg* _m)
                        }
                        res = parse_sdp_session(&body, 0, NULL, (sdp_info_t*)_m->body);
                        if (res != 0) {
-                               LM_DBG("free_sdp\n");
+                               LM_DBG("failed to parse sdp session - freeing sdp\n");
                                free_sdp((sdp_info_t**)(void*)&_m->body);
-                                return res;
+                               return res;
                        }
                        /* The whole body is SDP */
                        ((sdp_info_t*)_m->body)->raw_sdp.s = body.s;