mirror of
				https://github.com/CPunch/Laika.git
				synced 2025-10-31 02:20:21 +00:00 
			
		
		
		
	Fix: inet_ntop passed the wrong pointer
This commit is contained in:
		| @@ -160,8 +160,8 @@ void laikaS_acceptFrom(struct sLaika_socket *sock, struct sLaika_socket *from, c | |||||||
|         LAIKA_ERROR("accept() failed!\n"); |         LAIKA_ERROR("accept() failed!\n"); | ||||||
|  |  | ||||||
|     /* read ipv4 */ |     /* read ipv4 */ | ||||||
|     if (ipv4 != NULL) { |     if (ipv4) { | ||||||
|         if (inet_ntop(AF_INET, &address, ipv4, LAIKA_IPV4_LEN) == NULL) |         if (inet_ntop(AF_INET, &address.sin_addr, ipv4, LAIKA_IPV4_LEN) == NULL) | ||||||
|             LAIKA_ERROR("inet_ntop() failed!\n"); |             LAIKA_ERROR("inet_ntop() failed!\n"); | ||||||
|  |  | ||||||
|         /* restore null terminator */ |         /* restore null terminator */ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user