mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 16:18:19 +00:00
Fix IPAddr/IPPrefix serialization bugs. (all unit tests pass)
This commit is contained in:
parent
c227563baf
commit
06e59e1398
3 changed files with 8 additions and 9 deletions
|
@ -104,7 +104,7 @@ string IPAddr::AsString() const
|
|||
char s[INET6_ADDRSTRLEN];
|
||||
|
||||
if ( inet_ntop(AF_INET6, in6.s6_addr, s, INET6_ADDRSTRLEN) == NULL )
|
||||
return "<bad IPv64 address conversion";
|
||||
return "<bad IPv6 address conversion";
|
||||
else
|
||||
return s;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue