rem: if (insert_new_lump_after(anchor, buf, ADIRECTION_LEN - 1, 0) == NULL) {
add: if (insert_new_lump_after(anchor, buf, ADIRECTION_LEN, 0) == NULL) {
context: fix_nated_sdp_f(struct sip_msg* msg, char* str1, char* str2){	str body, body1, oldip, oldip1, newip;	int level, added_len;	char *buf;	struct lump* anchor;	level = (int)(long)str1;	added_len = 0;	if (extract_body(msg, &body) == -1 || body.len == 0) {		LOG(L_ERR,"ERROR: fix_nated_sdp: cannot extract body from msg!\n");		return -1;	}	if (level & ADD_ADIRECTION) {		anchor = anchor_lump(&(msg->add_rm),		    body.s + body.len - msg->buf, 0, 0);		if (anchor == NULL) {			LOG(L_ERR, "ERROR: fix_nated_sdp: anchor_lump failed\n");			return -1;		}		buf = pkg_malloc(ADIRECTION_LEN * sizeof(char));		if (buf == NULL) {			LOG(L_ERR, "ERROR: fix_nated_sdp: out of memory\n");			return -1;		}		memcpy(buf, ADIRECTION, ADIRECTION_LEN);		if (insert_new_lump_after(anchor, buf, ADIRECTION_LEN - 1, 0) == NULL) {			LOG(L_ERR, "ERROR: fix_nated_sdp: insert_new_lump_after failed\n");			pkg_free(buf);			return -1;		}		added_len += ADIRECTION_LEN - 1;	}	if (level & FIX_MEDIAIP) {		if (extract_mediaip(&body, &oldip) == -1) {			LOG(L_ERR, "ERROR: fix_nated_sdp: can't extract media IP from the SDP\n");			goto finalise;		}		body1.s = oldip.s + oldip.len;		body1.len = body.s + body.len - body1.s;		if (extract_mediaip(&body1, &oldip1) == -1) {			oldip1.len = 0;		}		newip.s = ip_addr2a(&msg->rcv.src_ip);		newip.len = strlen(newip.s);		if (alter_mediaip(msg, &body, &oldip, &newip,		    &added_len, 1) == -1) {			LOG(L_ERR, "ERROR: fix_nated_sdp: can't alter media IP");			return -1;		}		if (oldip1.len > 0 && alter_mediaip(msg, &body, &oldip1, &newip,		    &added_len, 0) == -1) {			LOG(L_ERR, "ERROR: fix_nated_sdp: can't alter media IP");			return -1;		}	}finalise:	/* Check that Content-Length needs to be updated */	if (added_len != 0) {		return (update_clen(msg, body.len + added_len));	}	return 1;}