1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-28 10:29:03 +00:00

Silence some code analysis warnings

This commit is contained in:
dmiller
2022-08-29 17:09:47 +00:00
parent cd992b995b
commit c5a7c60381
3 changed files with 5 additions and 4 deletions

View File

@@ -332,7 +332,7 @@ const char *inet_socktop(const union sockaddr_u *su)
addr = (void *) &su->in6.sin6_addr;
#endif
else
addr = NULL;
bye("Invalid address family passed to inet_socktop().");
if (inet_ntop(su->storage.ss_family, addr, buf, sizeof(buf)) == NULL) {
bye("Failed to convert address to presentation format! Error: %s.",