]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Oops, more crap filtering
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 21 Feb 2019 13:09:42 +0000 (13:09 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 21 Feb 2019 13:09:42 +0000 (13:09 +0000)
src/libserver/html.c

index de632201cf407e6cdb4023cd72bef225aa0f1644..8ade5a61e4747bb627c4109408c52ad959b27985 100644 (file)
@@ -1380,6 +1380,10 @@ rspamd_html_process_url (rspamd_mempool_t *pool, const gchar *start, guint len,
                                memcpy (d, "http://", sizeof ("http://") - 1);
                                d += sizeof ("http://") - 1;
                        }
+                       else {
+                               /* Some crap */
+                               return NULL;
+                       }
                }
        }