projects
/
platform
/
upstream
/
multipath-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
970c72e
)
[checkers] fix segfault in the checker lookup function
author
Christophe Varoqui
<root@xa-s05.(none)>
Tue, 14 Feb 2006 08:03:19 +0000
(09:03 +0100)
committer
Christophe Varoqui
<root@xa-s05.(none)>
Tue, 14 Feb 2006 08:03:19 +0000
(09:03 +0100)
Multipath was segfaulting on startup because of some pointer arithmatic
craziness with the checkers. The attached patch fixes it.
Benjamin Marzinski, Redhat
libcheckers/checkers.c
patch
|
blob
|
history
diff --git
a/libcheckers/checkers.c
b/libcheckers/checkers.c
index
a4a6091
..
646cd70
100644
(file)
--- a/
libcheckers/checkers.c
+++ b/
libcheckers/checkers.c
@@
-70,7
+70,7
@@
struct checker * checker_lookup (char * name)
while (c->check) {
if (!strncmp(name, c->name, CHECKER_NAME_LEN))
return c;
- c
+= sizeof(struct checker)
;
+ c
++
;
}
return NULL;
}