[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[dm-devel] checkers segfault



Multipath was segfaulting on startup because of some pointer arithmatic
craziness with the checkers. The attached patch fixes it.

-Ben
diff -urpN mp-devel-clean/libcheckers/checkers.c mp-devel-patched/libcheckers/checkers.c
--- mp-devel-clean/libcheckers/checkers.c	2006-02-13 11:53:34.000000000 -0600
+++ mp-devel-patched/libcheckers/checkers.c	2006-02-13 20:03:14.000000000 -0600
@@ -70,7 +70,7 @@ struct checker * checker_lookup (char * 
 	while (c->check) {
 		if (!strncmp(name, c->name, CHECKER_NAME_LEN))
 			return c;
-		c += sizeof(struct checker);
+		c++;
 	}
 	return NULL;
 }

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]