function if_cmp_func currently considres interfaces with names like
"devtyp" and "devtyp0" the same. This patch fixes it.
--- if.c 16 Jan 2004 10:15:01 -0000
+++ if.c 22 Jun 2004 10:09:53 -0000
@@ -79,6 +79,9 @@ if_cmp_func (struct interface *ifp1, str
p1 += l1;
p2 += l1;
+ if (!*p1) return -1;
+ if (!*p2) return 1;
+
x1 = strtol(p1, &p1, 10);
x2 = strtol(p2, &p2, 10);
"devtyp" and "devtyp0" the same. This patch fixes it.
--- if.c 16 Jan 2004 10:15:01 -0000
+++ if.c 22 Jun 2004 10:09:53 -0000
@@ -79,6 +79,9 @@ if_cmp_func (struct interface *ifp1, str
p1 += l1;
p2 += l1;
+ if (!*p1) return -1;
+ if (!*p2) return 1;
+
x1 = strtol(p1, &p1, 10);
x2 = strtol(p2, &p2, 10);