- }
- if ((msg->content_length==0) &&
- ((parse_headers(msg,HDR_CONTENTLENGTH_F,0)==-1) ||
- (msg->content_length==0) )){
- LOG(L_ERR,"ERROR: sdp_mangle_port: bad or missing "
- "Content-Length \n");
- return -2;
- }
- oldContentLength = get_content_length(msg);
-
- if (oldContentLength <= 0)
- {
- LOG(L_ERR,"ERROR: sdp_mangle_ip: Received <= for Content-Length\n");
+ }
+ if((msg->content_length == 0)
+ && ((parse_headers(msg, HDR_CONTENTLENGTH_F, 0) == -1)
+ || (msg->content_length == 0))) {
+ LOG(L_ERR, "ERROR: sdp_mangle_port: bad or missing "
+ "Content-Length \n");