-
src/sbbs3/services.c
From
rswindell@VERT to
CVS commit on Tuesday, January 07, 2014 03:43:08
src/sbbs3 services.c 1.271 1.272
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv10139
Modified Files:
services.c
Log Message:
Resolve occasional crash (NULL ptr dereference) when recycling services server due to race condition betwen call of _beginthread() to thread function
actually being executed and the notice of a recycle semaphore condition and
the freeing of dynamically allocated elements of the global scfg instance.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
rswindell@VERT to
CVS commit on Friday, March 14, 2014 01:25:46
src/sbbs3 services.c 1.273 1.274
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv26058
Modified Files:
services.c
Log Message:
Fix crash (at least on Win32) when services thread terminates during initialization due to no service sockets being successfully bound. The crash was in cleanup(), while checking the 'theads_pending_start' protected-int, which had not been created/initialized yet. The fix is to create/init the threads_pending_start protected-int before any possible call to cleanup().
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
deuce@VERT to
CVS commit on Friday, August 21, 2015 00:52:49
src/sbbs3 services.c 1.278 1.279
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv29279
Modified Files:
services.c
Log Message:
Don't simply copy the read/write methods from the socket object... this changes the objects private data, and badly breaks the methods.
Instead, implement a wrapper macro and use it.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
deuce@VERT to
CVS commit on Friday, August 21, 2015 00:59:27
src/sbbs3 services.c 1.279 1.280
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv29428
Modified Files:
services.c
Log Message:
Remove incorrect comment and add a correct one.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
deuce@VERT to
CVS commit on Monday, August 24, 2015 18:45:53
src/sbbs3 services.c 1.285 1.286
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv24096
Modified Files:
services.c
Log Message:
Fix warnings.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
deuce@VERT to
CVS commit on Thursday, January 21, 2016 02:03:17
src/sbbs3 services.c 1.289 1.290
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv9401
Modified Files:
services.c
Log Message:
Initialize the TLS session to -1 when not a TLS service.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
rswindell@VERT to
CVS commit on Sunday, January 14, 2018 18:23:02
src/sbbs3 services.c 1.301 1.302
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv7382
Modified Files:
services.c
Log Message:
Only call get_ssl_cert() when one or more services have TLS/SSL enabled.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Saturday, February 17, 2018 18:18:07
src/sbbs3 services.c 1.302 1.303
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv27459
Modified Files:
services.c
Log Message:
JS login() method:
Convert up to 128 characters of the passed user name to a string we can use
and log in case of failure (helps to debug the full actual user name passed to the sevice, e.g. by an IMAP client).
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
deuce@VERT to
CVS commit on Monday, March 05, 2018 11:46:57
src/sbbs3 services.c 1.308 1.309
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv20120
Modified Files:
services.c
Log Message:
Remove waits in the services_thread() main loop.
These waits could cause "bad" traffic (blocked, max client exceeded, etc)
to prevent/delay accept()ing "good" traffic on other services.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
deuce@VERT to
CVS commit on Monday, March 05, 2018 16:08:35
src/sbbs3 services.c 1.309 1.310
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv18728
Modified Files:
services.c
Log Message:
Don't call get_ssl_cert() until the services thread is up.
Should fix possible issue with certificate being owned by root when _THREAD_SUID_BROKEN is true (ie: Linux).
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
deuce@VERT to
CVS commit on Friday, March 09, 2018 22:34:49
src/sbbs3 services.c 1.312 1.313
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv19892
Modified Files:
services.c
Log Message:
Add missing NULL check.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Sunday, March 11, 2018 20:21:44
src/sbbs3 services.c 1.315 1.316
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv1850
Modified Files:
services.c
Log Message:
NNTPS/TLS looks funny. Let's go with a "<svc/prot> TLS" instead.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Thursday, March 22, 2018 14:20:43
src/sbbs3 services.c 1.317 1.318
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv28533
Modified Files:
services.c
Log Message:
Bug-fix: JS service calls to random() would return the same sequence on Windows, every time. For example, this resulted in the same BinkP CRAM-MD5 challenge being sent for every mailer session. Fixed by calling sbbs_srand
in the service's thread, not (just once) in the accept thread.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
deuce@VERT to
CVS commit on Tuesday, March 27, 2018 19:47:04
src/sbbs3 services.c 1.319 1.320
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv14225
Modified Files:
services.c
Log Message:
Fix potential crypt handle leak for TLS services. Destroy the session
if the thread returns before js_initcx() is called.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Thursday, April 05, 2018 19:18:29
src/sbbs3 services.c 1.321 1.322
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/home/rswindell/sbbs/src/sbbs3
Modified Files:
services.c
Log Message:
Enabled GCC-assisted printf-style format/arg checking for lprintf() and
fix the resulting warnings.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Saturday, October 06, 2018 15:34:37
src/sbbs3 services.c 1.323 1.324
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv14449
Modified Files:
services.c
Log Message:
Zero-initialize the allocated subscan array.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Thursday, August 08, 2019 17:49:19
src/sbbs3 services.c 1.330 1.331
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv16636
Modified Files:
services.c
Log Message:
Fix long standing bug with the global JS function login():
A few *service.js scripts call this function without a password argument
(the second argument), e.g. login("guest");
If there was no guest account (or the guest account had a password assigned), this would result in a failed login attempt as "guest" along with a garbage password (e.g. a floating point number, like 3.7042561) and since it would
be a unique garbage password for each login() call without an actual password specified, these login() calls would be counted as unique failed login attempts and potentially cause the client's IP address to be added to the hack.log
and even ip.can (IP address filter).
As seen on Mortifis' system where VERT was filtereed due to
"SUSPECTED NNTP LOGIN HACK ATTEMPT", likely due to the daily sbbslist verifications when just perform a TCP connection and no actual login attempt, but nntpservice.js would still call login("guest") before the client (vert) would be disconnected.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Sunday, April 19, 2020 21:43:29
src/sbbs3 services.c 1.333 1.334
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv20856
Modified Files:
services.c
Log Message:
Provide detailed socket error descriptions using new socket_strerror() function.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
Rob Swindell@VERT to
Git commit to sbbs/master on Saturday, September 26, 2020 18:24:35
https://gitlab.synchro.net/sbbs/sbbs/-/commit/2ec90d7a5e2b30b7f2fcd471
Modified Files:
src/sbbs3/services.c
Log Message:
Place socket error description at the end of the logged messages.
Socket error descriptions on Windows can be quite long (e.g. > 128 chars) and include punctuation, so include at the end of logged socket error messages.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
Rob Swindell@VERT to
Git commit to main/sbbs/master on Saturday, February 20, 2021 17:31:34
https://gitlab.synchro.net/main/sbbs/-/commit/9af56407b142a029bea9ec5c
Modified Files:
src/sbbs3/services.c
Log Message:
Track client counter per service again
Add the "two or three lines" that Deuce said were needed to restore this functionality.
Also got rid of some now unnecessary (void) protected_*int* return value ignoring warning-suppressors.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
Rob Swindell@VERT to
Git commit to main/sbbs/master on Sunday, February 28, 2021 13:22:48
https://gitlab.synchro.net/main/sbbs/-/commit/452e65d884ccae63634d0cad
Modified Files:
src/sbbs3/services.c
Log Message:
Fix "clients remain" log line issue introduced in 9af56407
The service clients count is now a protected int, so deal. On Windows, this was resulting in the "total" and "served" values logged as 4294967295.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
Rob Swindell@VERT to
Git commit to main/sbbs/master on Sunday, February 28, 2021 14:33:05
-
From
Rob Swindell@VERT to
Git commit to main/sbbs/master on Sunday, April 04, 2021 13:38:22
-
From
Deuc¨@VERT to
Git commit to main/sbbs/master on Monday, April 05, 2021 12:03:56
-
From
Rob Swindell@VERT to
Git commit to main/sbbs/master on Tuesday, April 06, 2021 18:37:13
-
From
Rob Swindell@VERT to
Git commit to main/sbbs/master on Tuesday, March 01, 2022 22:43:08
-
From
Rob Swindell@VERT to
Git commit to main/sbbs/master on Wednesday, May 11, 2022 00:37:31
https://gitlab.synchro.net/main/sbbs/-/commit/b293b6e53e751fff783f90c2
Modified Files:
src/sbbs3/services.c
Log Message:
Allow a per-service "LowestLogLevel" setting
Have a service (e.g. imapservice.js) that logs errors that you'd rather not fill your error.log file with? Set that service's "LowestLogLevel" to "Warning" in your services.ini file ("lower" means "more severe" when it comes to log levels, so this would set the maximum severity to Warning).
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
Rob Swindell@VERT to
Git commit to main/sbbs/master on Sunday, August 21, 2022 18:35:34
https://gitlab.synchro.net/main/sbbs/-/commit/9bd552ed13142092f54e2b2b
Modified Files:
src/sbbs3/services.c
Log Message:
Improve JavaScript-related error messages and fix potential JS runtime leak
If a new JS context could not be created for any reason, a JS runtime would still be allocated (and leaked), potentially leading to out of memory situations which had been seen (before this change) on vert.synchro.net.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
Rob Swindell (on ChromeOS)@VERT to
Git commit to main/sbbs/master on Thursday, January 26, 2023 23:45:00
-
From
Rob Swindell (in GitKraken)@VERT to
Git commit to main/sbbs/master on Sunday, March 12, 2023 00:00:02
https://gitlab.synchro.net/main/sbbs/-/commit/f40e7fbd4471344721a998e9
Modified Files:
src/sbbs3/services.c
Log Message:
Fix a couple of potential NULL-pointer deferences in js_initcx() failure cases
service_client->client is NULL in these failure/error cases, so get the protocol string from the service_client->service (which is not NULL) instead.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
Rob Swindell (on Windows)@VERT to
Git commit to main/sbbs/master on Monday, May 01, 2023 12:00:24
-
From
Rob Swindell (on Windows 11)@VERT to
Git commit to main/sbbs/master on Sunday, December 17, 2023 01:14:27
-
From
Rob Swindell (on Windows 11)@VERT to
Git commit to main/sbbs/master on Sunday, December 17, 2023 01:37:48
-
From
Deuc¨@VERT to
Git commit to main/sbbs/master on Monday, January 29, 2024 11:42:45
https://gitlab.synchro.net/main/sbbs/-/commit/5634092ad3f89d6e63fd52d9
Modified Files:
src/sbbs3/services.c
Log Message:
Fix apparent session leak in services.
It appears that after successful completion of a JS service, the
TLS session is never destroyed.
If this fix isn't valid for #707, we should see a bunch of
"Destroying a session (...) that's not in sess_list" log messages
Thanks Keyop!
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
Deuc¨@VERT to
Git commit to main/sbbs/master on Wednesday, February 07, 2024 14:47:35