mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 05:58:20 +00:00
Fix an off-by-one error when grabbing x-originating-ip header in email.
This commit is contained in:
parent
90399db32d
commit
e27f311059
1 changed files with 2 additions and 2 deletions
|
@ -255,8 +255,8 @@ event mime_one_header(c: connection, h: mime_header_rec) &priority=5
|
|||
else if ( h$name == "X-ORIGINATING-IP" )
|
||||
{
|
||||
local addresses = extract_ip_addresses(h$value);
|
||||
if ( 1 in addresses )
|
||||
c$smtp$x_originating_ip = to_addr(addresses[1]);
|
||||
if ( 0 in addresses )
|
||||
c$smtp$x_originating_ip = to_addr(addresses[0]);
|
||||
}
|
||||
|
||||
else if ( h$name == "X-MAILER" ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue