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
b01107b750
commit
2a14509d20
@ -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…
x
Reference in New Issue
Block a user