Repository navigation
Closed
Labels
C-strIssues and PRs about C/C++ methods, headers and data types dealing with strings and memory blocksIssues and PRs about C/C++ methods, headers and data types dealing with strings and memory blocksbugimpacts-release-2.8.4Issues reported against NUT release 2.8.4 (maybe vanilla or with minor packaging tweaks)Issues reported against NUT release 2.8.4 (maybe vanilla or with minor packaging tweaks)nut-scanner
Milestone
Description
Scanned a VM network recently, and reports saw some IP addresses repeated and others empty. Is something overlapped in memory with pthreads in use? Is it poking all the correct IPs and only reporting them wrong (e.g. some buffer reuse in inet_ntop() or somesuch)?..
Reproduced with a native NUT for Windows build, and with a Linux build running in WSL:
:; LD_LIBRARY_PATH=`pwd`/clients/.libs:`pwd`/tools/nut-scanner/.libs:$LD_LIBRARY_PATH ./tools/nut-scanner/nut-scanner -O -m 10.10.10.0/24
upscli_tryconnect: Connection to host timed out: '10.10.10.12'
upscli_tryconnect: Connection to host timed out: '10.10.10.12'
upscli_tryconnect: Connection to host timed out: '10.10.10.3'
upscli_tryconnect: Connection to host timed out: '10.10.10.17'
upscli_tryconnect: Connection to host timed out: '10.10.10.20'
upscli_tryconnect: Connection to host timed out: '10.10.10.22'
upscli_tryconnect: Connection to host timed out: '10.10.10.0'
upscli_tryconnect: Connection to host timed out: '10.10.10.7'
upscli_tryconnect: Connection to host timed out: '10.10.10.8'
upscli_tryconnect: Connection to host timed out: '10.10.10.19'
upscli_tryconnect: Connection to host timed out: '10.10.10.23'
upscli_tryconnect: Connection to host timed out: '10.10.10.24'
upscli_tryconnect: Connection to host timed out: '10.10.10.32'
upscli_tryconnect: Connection to host timed out: '10.10.10.40'
upscli_tryconnect: Connection to host timed out: ''
upscli_tryconnect: Connection to host timed out: '10.10.10.18'
upscli_tryconnect: Connection to host timed out: '10.10.10.29'
upscli_tryconnect: Connection to host timed out: '10.10.10.30'
upscli_tryconnect: Connection to host timed out: '10.10.10.11'
...
Metadata
Metadata
Assignees
Labels
C-strIssues and PRs about C/C++ methods, headers and data types dealing with strings and memory blocksIssues and PRs about C/C++ methods, headers and data types dealing with strings and memory blocksbugimpacts-release-2.8.4Issues reported against NUT release 2.8.4 (maybe vanilla or with minor packaging tweaks)Issues reported against NUT release 2.8.4 (maybe vanilla or with minor packaging tweaks)nut-scanner
Activity
clients/upsclient.c, common/common.c, etc: fix inet_ntopAI() and inet…
jimklimov commentedon Dec 24, 2025
The problem was indeed "cosmetic", in conversions to strings. Just in case it pops up worse, fixed in PR #3235
clients/upsclient.c, common/common.c, etc: fix inet_ntopAI() and inet…
clients/upsclient.c, common/common.c, etc: fix inet_ntopAI() and inet…
clients/upsclient.c, common/common.c, etc: fix inet_ntopAI() and inet…