socket: prevent signed integer overflow

src/core/socket.c:588:25: error: overflow in implicit constant conversion
src/core/socket.c:589:17: error: overflow in implicit constant conversion
This commit is contained in:
Dave Reisner
2012-09-16 16:55:46 +02:00
committed by Zbigniew Jędrzejewski-Szmek
parent 89154bd4ac
commit c65a0b1466
+1 -1
View File
@@ -584,7 +584,7 @@ static int instance_from_socket(int fd, unsigned nr, char **instance) {
}
case AF_INET6: {
static const char ipv4_prefix[] = {
static const unsigned char ipv4_prefix[] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0xFF, 0xFF
};