diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-07-23 20:41:02 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-07-23 20:41:02 +0100 |
commit | eef2f3cac7c975af050efaf4cf1acafcb9b501e3 (patch) | |
tree | 1faf0c72dc3ce69ce56d21dcf1b6b5ffd757aa0f /src/libserver/protocol.c | |
parent | 80e8a76a31943ee23cec774888b575a69a1360f1 (diff) | |
download | rspamd-eef2f3cac7c975af050efaf4cf1acafcb9b501e3.tar.gz rspamd-eef2f3cac7c975af050efaf4cf1acafcb9b501e3.zip |
[Feature] Reorganise struct rspamd_url to be 64 bytes size
Diffstat (limited to 'src/libserver/protocol.c')
-rw-r--r-- | src/libserver/protocol.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libserver/protocol.c b/src/libserver/protocol.c index 3708d823f..1d1214c27 100644 --- a/src/libserver/protocol.c +++ b/src/libserver/protocol.c @@ -909,9 +909,9 @@ rspamd_protocol_extended_url (struct rspamd_task *task, ucl_object_insert_key (obj, flags, "flags", 0, false); - if (url->linked_url) { - encoded = rspamd_url_encode (url->linked_url, &enclen, task->task_pool); - elt = rspamd_protocol_extended_url (task, url->linked_url, encoded, + if (url->ext && url->ext->linked_url) { + encoded = rspamd_url_encode (url->ext->linked_url, &enclen, task->task_pool); + elt = rspamd_protocol_extended_url (task, url->ext->linked_url, encoded, enclen); ucl_object_insert_key (obj, elt, "linked_url", 0, false); } |