diff options
Diffstat (limited to 'xlators/protocol')
| -rw-r--r-- | xlators/protocol/server/src/server-protocol.c | 4 | 
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 ab3b4a6b915..92cdda2bf84 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;  | 
