mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
Correct a typo in nlm_find_host_by_addr(): the intention of the
code is to give "<unknown>" rather than comparing the buffer against it. MFC after: 2 weeks
This commit is contained in:
parent
8e41e26f65
commit
0bd8e9dcc4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=262991
|
@ -1072,7 +1072,7 @@ nlm_find_host_by_addr(const struct sockaddr *addr, int vers)
|
|||
break;
|
||||
#endif
|
||||
default:
|
||||
strcmp(tmp, "<unknown>");
|
||||
strlcpy(tmp, "<unknown>", sizeof(tmp));
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue