Reset tcplen after use.
This commit is contained in:
		
							parent
							
								
									8ddcad5fa1
								
							
						
					
					
						commit
						54c900e961
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -137,6 +137,7 @@ bool receive_meta(connection_t *c) { | |||
| 			if(c->tcplen) { | ||||
| 				char *tcpbuffer = buffer_read(&c->inbuf, c->tcplen); | ||||
| 				if(tcpbuffer) { | ||||
| 					c->tcplen = 0; | ||||
| 					receive_tcppacket(c, tcpbuffer, c->tcplen); | ||||
| 					continue; | ||||
| 				} else { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue