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:
bb6698e
)
[libmultipath] fix segfault on empty maps in dm_type()
author
Christophe Varoqui
<root@xa-s05.(none)>
Mon, 3 Oct 2005 10:28:43 +0000
(12:28 +0200)
committer
Christophe Varoqui
<root@xa-s05.(none)>
Mon, 3 Oct 2005 10:28:43 +0000
(12:28 +0200)
Reported by Maxim Kozover
libmultipath/devmapper.c
patch
|
blob
|
history
diff --git
a/libmultipath/devmapper.c
b/libmultipath/devmapper.c
index
7cd656f
..
b662b74
100644
(file)
--- a/
libmultipath/devmapper.c
+++ b/
libmultipath/devmapper.c
@@
-278,7
+278,7
@@
dm_type(char * name, char * type)
next = dm_get_next_target(dmt, next, &start, &length,
&target_type, ¶ms);
- if (
0 ==
strcmp(target_type, type))
+ if (
target_type && !
strcmp(target_type, type))
r = 1;
out: