]> git.ipfire.org Git - ipfire-3.x.git/blobdiff - iproute2/patches/iproute2-3.11.0-rtt.patch
iproute2: Update to 3.14.0.
[ipfire-3.x.git] / iproute2 / patches / iproute2-3.11.0-rtt.patch
diff --git a/iproute2/patches/iproute2-3.11.0-rtt.patch b/iproute2/patches/iproute2-3.11.0-rtt.patch
new file mode 100644 (file)
index 0000000..8198374
--- /dev/null
@@ -0,0 +1,31 @@
+diff --git a/lib/utils.c b/lib/utils.c
+index dae1b51..8a1a65d 100644
+--- a/lib/utils.c
++++ b/lib/utils.c
+@@ -145,7 +145,7 @@ int get_time_rtt(unsigned *val, const char *arg, int *raw)
+                       return -1;
+               /* extra non-digits */
+-              if (!p || p == arg || *p)
++              if (!p || p == arg)
+                       return -1;
+               /* over/underflow */
+@@ -155,7 +155,7 @@ int get_time_rtt(unsigned *val, const char *arg, int *raw)
+               res = strtoul(arg, &p, 0);
+               /* empty string or trailing non-digits */
+-              if (!p || p == arg || *p)
++              if (!p || p == arg)
+                       return -1;
+               /* overflow */
+@@ -165,8 +165,6 @@ int get_time_rtt(unsigned *val, const char *arg, int *raw)
+               t = (double)res;
+       }
+-      if (p == arg)
+-              return -1;
+       *raw = 1;
+       if (*p) {