Diff between d6fc849fbdacfd42ff089771d49ade446f1f2ec5 and e65494e3a9fe8e25aed38b9d5fa8e576c3d7ad32
Changed Files
| File | Additions | Deletions | Status |
| mesh/rpl.c | +3 | -1 | modified |
Full Patch
diff --git a/mesh/rpl.c b/mesh/rpl.c
index ac0f6b6..c53c6fb 100644
--- a/mesh/rpl.c
+++ b/mesh/rpl.c
@@ -143,8 +143,10 @@ static void get_entries(const char *iv_path, struct l_queue *rpl_list)
return;
iv_txt = basename(iv_path);
- if (sscanf(iv_txt, "%08x", &iv_index) != 1)
+ if (sscanf(iv_txt, "%08x", &iv_index) != 1) {
+ closedir(dir);
return;
+ }
memset(seq_txt, 0, sizeof(seq_txt));