initialized capa to 0 in to_dn_capa()
This commit is contained in:
		@ -953,12 +953,12 @@ for (i = 0; i < 5; i++)
 | 
			
		||||
	reply_tmout.nsec = 0;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
	//mio_bcstrtoskad (mio, "8.8.8.8:53", &servaddr);
 | 
			
		||||
	mio_bcstrtoskad (mio, "8.8.8.8:53", &servaddr);
 | 
			
		||||
	//mio_bcstrtoskad (mio, "[fe80::c7e2:bd6e:1209:ac1b]:1153", &servaddr);
 | 
			
		||||
	mio_bcstrtoskad (mio, "[fe80::c7e2:bd6e:1209:ac1b%eno1]:1153", &servaddr);
 | 
			
		||||
	//mio_bcstrtoskad (mio, "[fe80::c7e2:bd6e:1209:ac1b%eno1]:1153", &servaddr);
 | 
			
		||||
	dnc = mio_svc_dnc_start (mio, &servaddr, MIO_NULL, &send_tmout, &reply_tmout, 2); /* option - send to all, send one by one */
 | 
			
		||||
 | 
			
		||||
#if 1
 | 
			
		||||
#if 0
 | 
			
		||||
	{
 | 
			
		||||
		mio_dns_bqr_t qrs[] = 
 | 
			
		||||
		{
 | 
			
		||||
 | 
			
		||||
@ -91,7 +91,6 @@ static mio_dns_msg_t* build_dns_msg (mio_svc_dnc_t* dnc, mio_dns_bhdr_t* bdns, m
 | 
			
		||||
	msg = mio_dns_make_msg(dnc->mio, bdns, qr, qr_count, rr, rr_count, edns, MIO_SIZEOF(*msgxtn) + xtnsize);
 | 
			
		||||
	if (msg)
 | 
			
		||||
	{
 | 
			
		||||
		
 | 
			
		||||
		if (bdns->id < 0)
 | 
			
		||||
		{
 | 
			
		||||
			mio_dns_pkt_t* pkt = mio_dns_msg_to_pkt(msg);
 | 
			
		||||
 | 
			
		||||
@ -69,7 +69,7 @@ static mio_oow_t to_dn (const mio_bch_t* str, mio_uint8_t* buf)
 | 
			
		||||
 | 
			
		||||
static mio_oow_t to_dn_capa (const mio_bch_t* str)
 | 
			
		||||
{
 | 
			
		||||
	mio_oow_t capa;
 | 
			
		||||
	mio_oow_t capa = 0;
 | 
			
		||||
 | 
			
		||||
	/*MIO_ASSERT (MIO_SIZEOF(mio_uint8_t) == MIO_SIZEOF(mio_bch_t));*/
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user