mirror of
				https://github.com/3proxy/3proxy.git
				synced 2025-11-04 07:42:39 +08:00 
			
		
		
		
	Correct previous resolver patch
This commit is contained in:
		
							parent
							
								
									afbc27eac4
								
							
						
					
					
						commit
						a9fb0ea969
					
				@ -1161,7 +1161,7 @@ unsigned long udpresolve(int af, unsigned char * name, unsigned char * value, un
 | 
			
		||||
		k += 4;
 | 
			
		||||
		if(na > 255) na = 255;			/* somebody is very evil */
 | 
			
		||||
		for (j = 0; j < na; j++) {		/* now there should be answers */
 | 
			
		||||
			while(buf[k] < 192 && buf[k] !=0 && (k+buf[k]) < len) k+= buf[k];
 | 
			
		||||
			while(buf[k] < 192 && buf[k] !=0 && (k+buf[k]+14) < len) k+= (buf[k] + 1);
 | 
			
		||||
			if(!buf[k]) k--;
 | 
			
		||||
			if((k+(af == AF_INET6?28:16)) > len) {
 | 
			
		||||
				break;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user