diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/map.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -498,7 +498,7 @@ map_next(struct plugin_state *state, return FALSE; } entry = map_data_find_map_entry(state, map, prev_len, prev); - if ((entry == NULL) || (entry->next == NULL)) { + if (entry == NULL) { return FALSE; } *secure = map->secure; @@ -514,6 +514,9 @@ map_next(struct plugin_state *state, *next_value_len = entry->value_len; *next_value = entry->value; } else { + if (entry->next == NULL) { + return FALSE; + } *next_key_len = entry->next->key_len[0]; *next_key = entry->next->keys[0]; *next_value_len = entry->next->value_len; |