summaryrefslogtreecommitdiffstats
path: root/xlators/protocol/server/src
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/protocol/server/src')
-rw-r--r--xlators/protocol/server/src/server-protocol.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/xlators/protocol/server/src/server-protocol.c b/xlators/protocol/server/src/server-protocol.c
index ab3b4a6b9..92cdda2bf 100644
--- a/xlators/protocol/server/src/server-protocol.c
+++ b/xlators/protocol/server/src/server-protocol.c
@@ -6641,6 +6641,10 @@ _validate_volfile_checksum (xlator_t *this, char *key,
while (temp_volfile) {
if ((NULL == key) && (NULL == temp_volfile->key))
break;
+ if ((NULL == key) || (NULL == temp_volfile->key)) {
+ temp_volfile = temp_volfile->next;
+ continue;
+ }
if (strcmp (temp_volfile->key, key) == 0)
break;
temp_volfile = temp_volfile->next;