summaryrefslogtreecommitdiffstats
path: root/libglusterfsclient/src/libglusterfsclient.c
diff options
context:
space:
mode:
Diffstat (limited to 'libglusterfsclient/src/libglusterfsclient.c')
-rwxr-xr-xlibglusterfsclient/src/libglusterfsclient.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libglusterfsclient/src/libglusterfsclient.c b/libglusterfsclient/src/libglusterfsclient.c
index 9a8ead505..0a7b31e21 100755
--- a/libglusterfsclient/src/libglusterfsclient.c
+++ b/libglusterfsclient/src/libglusterfsclient.c
@@ -958,6 +958,12 @@ libgf_vmp_search_entry (char *path)
goto out;
}
+ /* This check is to guard against any calls into booster from
+ * libc without booster_init having been called first.
+ * This has been observed.
+ */
+ if (vmpentries == 0)
+ goto out;
list_for_each_entry(entry, &vmplist.list, list) {
matchcount = libgf_vmp_entry_match (entry, path);
if ((matchcount == entry->vmplen) && (matchcount > maxcount)) {