commit bdd0df7: [Minor] Fix weird logic

Vsevolod Stakhov vsevolod at highsecure.ru
Fri Jul 2 17:49:04 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-07-02 18:45:41 +0100
URL: https://github.com/rspamd/rspamd/commit/bdd0df711545560749d4d05b4d8e0e878090113d (HEAD -> master)

[Minor] Fix weird logic

---
 src/libserver/html/html.cxx | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/libserver/html/html.cxx b/src/libserver/html/html.cxx
index 854386020..e1550f411 100644
--- a/src/libserver/html/html.cxx
+++ b/src/libserver/html/html.cxx
@@ -1596,8 +1596,9 @@ html_process_input(rspamd_mempool_t *pool,
 						msg_info_pool ("cannot parse css: %*s",
 								(int)err_str.size(), err_str.data());
 					}
-
-					hc->css_style = ret_maybe.value();
+					else {
+						hc->css_style = ret_maybe.value();
+					}
 				}
 
 				p += end_style;


More information about the Commits mailing list