diff options
author | delphij <delphij@FreeBSD.org> | 2014-03-26 23:57:09 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2014-03-26 23:57:09 +0000 |
commit | 9c78ab8bb85259c01860f7c82a6e01c0718b0c5e (patch) | |
tree | 68055cd5bb4a82dc49a4e645f941025958c05a8a /sys/nlm | |
parent | 904b8fb3b33a483a00123fed594b33c2885b78e8 (diff) | |
download | FreeBSD-src-9c78ab8bb85259c01860f7c82a6e01c0718b0c5e.zip FreeBSD-src-9c78ab8bb85259c01860f7c82a6e01c0718b0c5e.tar.gz |
MFC r262991:
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.
Diffstat (limited to 'sys/nlm')
-rw-r--r-- | sys/nlm/nlm_prot_impl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/nlm/nlm_prot_impl.c b/sys/nlm/nlm_prot_impl.c index 387b009..74fae87 100644 --- a/sys/nlm/nlm_prot_impl.c +++ b/sys/nlm/nlm_prot_impl.c @@ -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)); } |