aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2015-10-23 09:52:50 +0300
committerNatanael Copa <ncopa@alpinelinux.org>2015-10-24 20:02:42 +0000
commit5f6672c1f9c71909f9da5717664b713ac53cb632 (patch)
tree24adddec6a2e09f99d7d4f58bc6c7551335cdadb
parent79c534fc67e03ef1f0b948b548fbbc40a5d53296 (diff)
downloadmkinitfs-5f6672c1f9c71909f9da5717664b713ac53cb632.tar.bz2
mkinitfs-5f6672c1f9c71909f9da5717664b713ac53cb632.tar.xz
nlplug-findfs: check for valid key value pair in uevent processing
just to be on the safe side
-rw-r--r--nlplug-findfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nlplug-findfs.c b/nlplug-findfs.c
index f42e34e..8393152 100644
--- a/nlplug-findfs.c
+++ b/nlplug-findfs.c
@@ -559,7 +559,7 @@ static int process_uevent(char *buf, const size_t len, struct ueventconf *conf)
continue;
}
- if (!slen)
+ if (!slen || !value)
continue;
value++;