]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix crash
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 28 Sep 2020 09:29:48 +0000 (10:29 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 28 Sep 2020 09:29:48 +0000 (10:29 +0100)
src/libutil/shingles.c

index 8816e6e3f0c5d6db7843f15661ba90cc6fbdf932..8765a3d348142cccd03695686dad5714f41d25eb 100644 (file)
@@ -184,7 +184,7 @@ rspamd_shingles_from_text (GArray *input,
 
                                                g_free (hashes);
 
-                                               if (pool != NULL) {
+                                               if (pool == NULL) {
                                                        g_free (res);
                                                }
 
@@ -258,7 +258,7 @@ rspamd_shingles_from_text (GArray *input,
                                                        g_free (hashes[i]);
                                                }
 
-                                               if (pool != NULL) {
+                                               if (pool == NULL) {
                                                        g_free (res);
                                                }