Author: delphij
Date: Tue Mar 11 00:25:55 2014
New Revision: 262991
URL: http://svnweb.freebsd.org/changeset/base/262991
Log:
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
Modified:
head/sys/nlm/nlm_prot_impl.c
Modified: head/sys/nlm/nlm_prot_impl.c
==============================================================================
--- head/sys/nlm/nlm_prot_impl.c Tue Mar 11 00:23:50 2014
(r262990)
+++ head/sys/nlm/nlm_prot_impl.c Tue Mar 11 00:25:55 2014
(r262991)
@@ -1072,7 +1072,7 @@ nlm_find_host_by_addr(const struct socka
break;
#endif
default:
- strcmp(tmp, "<unknown>");
+ strlcpy(tmp, "<unknown>", sizeof(tmp));
}
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"