From: Vsevolod Stakhov Date: Wed, 8 Jun 2022 19:21:17 +0000 (+0100) Subject: [Minor] Fix parsing of the headers X-Git-Tag: 3.3~202 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ee3c71b7e6ab3d423f0ab28925ab758501482a83;p=thirdparty%2Frspamd.git [Minor] Fix parsing of the headers --- diff --git a/src/client/rspamc.cxx b/src/client/rspamc.cxx index 0c4c2663f9..bdcbb0d2dc 100644 --- a/src/client/rspamc.cxx +++ b/src/client/rspamc.cxx @@ -703,8 +703,8 @@ add_options(GQueue *opts) } else { add_client_header(opts, - hdr_view.substr(0, std::distance(delim_pos, std::begin(hdr_view))), - hdr_view.substr(std::distance(delim_pos, std::begin(hdr_view) + 1))); + hdr_view.substr(0, std::distance(std::begin(hdr_view), delim_pos)), + hdr_view.substr(std::distance(std::begin(hdr_view), delim_pos) + 1)); } hdr++;