Suppress UBSan warnings in the xoshiro implementation.
[tinc] / src / autoconnect.c
index 1609363..9f4abec 100644 (file)
@@ -48,7 +48,8 @@ static void make_new_connection() {
                        continue;
                }
 
-               if(r--) {
+               if(r) {
+                       --r;
                        continue;
                }