mirror of
				https://github.com/pvvx/RTL00_WEB.git
				synced 2025-07-31 20:31:05 +00:00 
			
		
		
		
	Merge 6970636256 into a999e4c2fd
				
					
				
			This commit is contained in:
		
						commit
						516c91b2dd
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -1445,7 +1445,7 @@ static void eap_request(ppp_pcb *pcb, u_char *inp, int id, int len) { | |||
| 		} | ||||
| 
 | ||||
| 		/* Not so likely to happen. */ | ||||
| 		if (vallen >= len + sizeof (rhostname)) { | ||||
| 		if (len - vallen >= sizeof (rhostname)) { | ||||
| 			ppp_dbglog("EAP: trimming really long peer name down"); | ||||
| 			MEMCPY(rhostname, inp + vallen, sizeof (rhostname) - 1); | ||||
| 			rhostname[sizeof (rhostname) - 1] = '\0'; | ||||
|  | @ -1876,7 +1876,7 @@ static void eap_response(ppp_pcb *pcb, u_char *inp, int id, int len) { | |||
| 		} | ||||
| 
 | ||||
| 		/* Not so likely to happen. */ | ||||
| 		if (vallen >= len + sizeof (rhostname)) { | ||||
| 		if (len - vallen >= sizeof (rhostname)) { | ||||
| 			ppp_dbglog("EAP: trimming really long peer name down"); | ||||
| 			MEMCPY(rhostname, inp + vallen, sizeof (rhostname) - 1); | ||||
| 			rhostname[sizeof (rhostname) - 1] = '\0'; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue