BBS:      TELESC.NET.BR
Assunto:  New Defects reported by Coverity Scan for Synchronet
De:       scan-admin@coverity.com
Data:     Wed, 11 Mar 2026 13:28:10 +0000
-----------------------------------------------------------
Hi,

Please find the latest report on new defect(s) introduced to Synchronet found with Coverity Scan.

1 new defect(s) introduced to Synchronet found with Coverity Scan.


New defect(s) Reported-by: Coverity Scan
Showing 1 of 1 defect(s)


** CID 644869:       Code maintainability issues  (UNUSED_VALUE)
/main.cpp: 5548           in bbs_thread()


_____________________________________________________________________________________________
*** CID 644869:         Code maintainability issues  (UNUSED_VALUE)
/main.cpp: 5548             in bbs_thread()
5542     			client_socket = xpms_accept(ts_set, &client_addr
5543     			                            , &client_addr_len, startup->sem_chk_freq * 1000, (startup->options & BBS_OPT_HAPROXY_PROTO) ? XPMS_ACCEPT_FLAG_HAPROXY : XPMS_FLAGS_NONE, &ts_cb);
5544
5545     			if (terminate_server) { /* terminated */
5546     				if (client_socket != INVALID_SOCKET)
5547     					close_socket(client_socket);
>>>     CID 644869:         Code maintainability issues  (UNUSED_VALUE)
>>>     Assigning value "-1" to "client_socket" here, but that stored value is overwritten before it can be used.
5548     				client_socket = INVALID_SOCKET;
5549     				break;
5550     			}
5551
5552     			if ((p = semfile_list_check(&initialized, clear_attempts_semfiles)) != NULL) {
5553     				lprintf(LOG_INFO, "Clear Failed Login Attempts semaphore file (%s) detected", p);


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://scan.coverity.com/projects/synchronet?tab=overview


n
---
 * mSynchronetn * hgVertrauen n hHome of Synchronet n gh[vert/cvs/bbs].synchro.net

-----------------------------------------------------------
[Voltar]