]> tinc-vpn.org Git - tinc/blobdiff - src/route.c
Correct close() function when building with MSVC
[tinc] / src / route.c
index 25f2be5e54c5e879c7c25312bbf490672f9755fd..6f1ffd4cf5eb624028764be5b857e6762e3b9dae 100644 (file)
@@ -164,7 +164,7 @@ static void route_ipv4_unreachable(node_t *source, vpn_packet_t *packet, length_
                                }
                        }
 
-                       close(sockfd);
+                       closesocket(sockfd);
                }
        }
 
@@ -269,7 +269,7 @@ static void route_ipv6_unreachable(node_t *source, vpn_packet_t *packet, length_
                                }
                        }
 
-                       close(sockfd);
+                       closesocket(sockfd);
                }
        }