]> tinc-vpn.org Git - tinc/blobdiff - src/utils.c
Make sure we do not allocate new edge when talking to old nodes and the same edge...
[tinc] / src / utils.c
index 8fbc7108e9a3ffe8536b317e201fd5f5595566a0..65ba4b90402bc0df2df50fccf2f3e618c6e37597 100644 (file)
@@ -191,6 +191,11 @@ bool check_id(const char *id) {
        return true;
 }
 
+/* Windows doesn't define HOST_NAME_MAX. */
+#ifndef HOST_NAME_MAX
+#define HOST_NAME_MAX 255
+#endif
+
 char *replace_name(const char *name) {
        char *ret_name;