rem: if (!t_setbranch( t, i_req, branch )) {
add: if (!t_calc_branch(t, branch, i_req->add_to_branch_s, &i_req->add_to_branch_len )) {
context: char *print_uac_request( struct cell *t, struct sip_msg *i_req,	int branch, str *uri, unsigned int *len, struct socket_info *send_sock ){	char *buf, *shbuf;	shbuf=0;	/* ... we calculate branch ... */		if (!t_setbranch( t, i_req, branch )) {		LOG(L_ERR, "ERROR: print_uac_request: branch computation failed\n");		goto error01;	}	/* ... update uri ... */	i_req->new_uri=*uri;	/* ... give apps a chance to change things ... */	callback_event( TMCB_REQUEST_OUT, t, i_req, -i_req->REQ_METHOD);	/* ... and build it now */	buf=build_req_buf_from_sip_req( i_req, len, send_sock );#ifdef DBG_MSG_QA	if (buf[*len-1]==0) {		LOG(L_ERR, "ERROR: print_uac_request: sanity check failed\n");		abort();	}#endif	if (!buf) {		LOG(L_ERR, "ERROR: print_uac_request: no pkg_mem\n"); 		ser_error=E_OUT_OF_MEM;		goto error01;	}	/*	clean Via's we created now -- they would accumulate for		other branches  and for  shmem i_req they would mix up	 	shmem with pkg_mem	*/#ifdef OBSOLETED	if (branch) for(b=i_req->add_rm,b1=0;b;b1=b,b=b->next)		if (b->type==HDR_VIA) {			for(a=b->before;a;)				{c=a->before;free_lump(a);pkg_free(a);a=c;}			for(a=b->after;a;)				{c=a->after;free_lump(a);pkg_free(a);a=c;}			if (b1) b1->next = b->next;			else i_req->add_rm = b->next;			free_lump(b);pkg_free(b);		}#endif	free_via_lump(&i_req->add_rm);	shbuf=(char *)shm_malloc(*len);	if (!shbuf) {		ser_error=E_OUT_OF_MEM;		LOG(L_ERR, "ERROR: print_uac_request: no shmem\n");		goto error02;	}	memcpy( shbuf, buf, *len );error02:	pkg_free( buf );error01:	return shbuf;}