add: to=0;
context: int forward_request( struct sip_msg* msg, struct proxy_l * p){	unsigned int len;	char* buf=NULL;	struct sockaddr_in* to=NULL;	buf = build_req_buf_from_sip_req( msg, &len);	if (!buf){		LOG(L_ERR, "ERROR: forward_reply: building failed\n");		goto error;	}	to=(struct sockaddr_in*)malloc(sizeof(struct sockaddr));	if (to==0){		LOG(L_ERR, "ERROR: forward_request: out of memory\n");		goto error;	}	 /* send it! */	DBG("Sending:", buf);	DBG("orig. len=%d, new_len=%d\n", msg->len, len );	to->sin_family = AF_INET;	to->sin_port = (p->port)?htons(p->port):htons(SIP_PORT);	/* if error try next ip address if possible */	if (p->ok==0){		if (p->host.h_addr_list[p->addr_idx+1])			p->addr_idx++;		p->ok=1;	}	/* ? not 64bit clean?*/	to->sin_addr.s_addr=*((long*)p->host.h_addr_list[p->addr_idx]);	p->tx++;	p->tx_bytes+=len;	if (udp_send( buf, len, (struct sockaddr*) to,				sizeof(struct sockaddr_in))==-1){			p->errors++;			p->ok=0;#ifdef STATS			update_fail_on_send;#endif			goto error;	}#ifdef STATS	/* sent requests stats */	else update_sent_request( msg->first_line.u.request.method_value );#endif	free(buf);	free(to);	/* received_buf & line_buf will be freed in receiv_msg by free_lump_list*/	return 0;error:	if (buf) free(buf);	if (to) free(to);	return -1;}