Fix UBSAN warnings in linux/device.c.
[tinc] / src / linux / device.c
index 8e23959..dfe75b6 100644 (file)
@@ -142,7 +142,7 @@ static void close_device(void) {
 }
 
 static bool read_packet(vpn_packet_t *packet) {
-       size_t inlen;
+       ssize_t inlen;
 
        switch(device_type) {
        case DEVICE_TYPE_TUN: