Sfoglia il codice sorgente

[Fix] Fix some corner cases when parsing maps with no newlines

tags/3.8.0
Vsevolod Stakhov 7 mesi fa
parent
commit
f3c299ded9
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3
    0
      src/libserver/maps/map_helpers.c

+ 3
- 0
src/libserver/maps/map_helpers.c Vedi File

@@ -411,6 +411,9 @@ rspamd_parse_kv_list(
/* Examine the state */
switch (data->state) {
case map_read_key:
case map_read_key_slashed:
case map_read_key_quoted:
case map_read_key_after_slash:
if (p - c > 0) {
/* Store a single key */
MAP_STORE_KEY;

Loading…
Annulla
Salva