Commit Graph

627 Commits

Author SHA1 Message Date
Mészáros Mihály
fbd79ed560
Merge pull request #466 from chanduthedev/null-check
added null check for second char
2020-02-12 08:02:15 +01:00
Mészáros Mihály
4badbbf018
Merge pull request #470 from FeralInteractive/compiler-fixes
Compiler warning fixes
2020-02-12 07:56:54 +01:00
Feral Interactive
efa7a47632 Silence shadow variable declaration warning.
'sar', 'value', and 'vlen' already exist in an outer scope and are safe to reuse since they're overwritten before being used again.
2019-11-20 00:03:46 +00:00
Feral Interactive
353e3b98e6 Add some casts to appease compiler warnings about narrowing. 2019-11-19 23:47:19 +00:00
Feral Interactive
b1990b6130 Liberally apply const where appropriate. 2019-11-19 23:47:11 +00:00
Feral Interactive
763d1f1b9c Fix a memory leak when an SHATYPE isn't supported.
Deallocating `str` happens at the end of the function, so don't skip it when encountering an unsupported SHATYPE.
2019-11-19 23:45:37 +00:00
chanduthedev
25338fa1c0 added null check for second char 2019-11-11 15:01:14 +08:00
Mészáros Mihály
8c8af9ec85
Merge pull request #442 from chanduthedev/ssh-length
Updated incorrect string length check for 'ssh'
2019-10-22 13:17:32 +02:00
Robert Scheck
cfdb99dc72 Append only to log files rather to override them (fixes #416) 2019-10-22 11:40:26 +02:00
chanduthedev
c317a19334 Some more typo's fixed 2019-10-16 13:56:32 +08:00
chanduthedev
9b0e53c18a
Updated incorrect string length check for 'ssh'
ssh length should be 3, but checking for 4. So updated memcmp method to 3 instead of 4.
2019-09-27 14:36:03 +08:00
Phillip Voyle
33b74fdc2a Fix spelling mistake 2019-05-30 14:23:44 +12:00
Zebadiah Long
8bf70a1199 added bandwidth usage reporting for bandwidth used by peers 2019-05-21 12:30:12 +02:00
Mészáros Mihály
a409588eda Fix: sqlite disconnect function 2019-05-21 12:23:59 +02:00
Mészáros Mihály
e4f688972d
Merge pull request #382 from islamoglus/feature/boringssl_compatibility
Using SSL_get_version method for BoringSSL compatibility
2019-05-20 14:20:36 +02:00
Mészáros Mihály
dfa95e6af5
Merge pull request #367 from shu-mutou/disconnect-db
Disconnect database gracefully
2019-05-20 11:10:30 +02:00
Mészáros Mihály
ed7121aa90
Merge pull request #392 from islamoglus/bugfix/wrong_fread_usage
Wrong fread usage
2019-05-20 10:58:13 +02:00
Mészáros Mihály
1081bb8239
Merge pull request #390 from ALE-Rainbow/fixMongoBadConnectionStringCrash
fix mongo driver crash when invalid connection string is used
2019-05-20 10:50:17 +02:00
islamoglus
9e16440552 check fread result is 0 or less than expected 2019-05-15 09:51:38 +03:00
islamoglus
59be080af5 wrong fread usage 2019-05-14 17:30:29 +03:00
Thibaut Ackermann
3df99009d3 fix mongo driver crash when invalid connection string is used 2019-05-14 15:25:58 +02:00
Thibaut Ackermann
cf938cd915 fix the webadmin ip permission add/delete sql injection 2019-05-07 11:23:29 +02:00
islamoglus
82fbde71bd using SSL_get_version method for BoringSSL compatibility 2019-04-22 16:00:57 +03:00
Shu Muto
dac67ea046 Disconnect database gracefully
Coturn does not disconnect database properly when shutdown.
This behavior causes accumulation of sockets for database with TIME_WAIT.
Especially, `turnadmin` is recommended to manage userdb,
but use of `turnadmin` from other application or scripts
can run out of socket resource due to above problem.

This patch adds database disconnection when shutdown
for both of `turnserver` and `turnadmin`.

Fixes #366
2019-03-18 15:33:21 +09:00
Mészáros Mihály
1265522666
Merge pull request #327 from alexte/master
strip white-spaces from config file lines end
2019-03-11 11:44:18 +01:00
Mészáros Mihály
8e4db32259 Fix free hiredis_libevent2.c 2019-03-11 11:35:09 +01:00
Mészáros Mihály
c15d3364f1
Merge pull request #359 from bradleythughes/do-not-overload-standard-api
Do not overload standard C API
2019-03-11 11:30:56 +01:00
Mathieu Brunot
073fa0bd2f
Do not display empty CLI passwd alert if no CLI
Fix #361
2019-03-11 10:37:52 +01:00
Bradley T. Hughes
d2ee3ac291 Remove [su]{08,16,32,64}bits type defines
Do not overload the standard types with #defines, just use them
directly.
2019-03-08 09:08:30 +01:00
Bradley T. Hughes
7663167dff Remove pointer debugging machinery
There are tools and debugging options that can be used instead. Do not
reinvent the wheel with our own pointer tracking/debugging code.
2019-03-07 08:39:20 +01:00
Bradley T. Hughes
7a43aae7c3 Remove ns_bzero(), ns_bcopy(), and ns_bcmp()
Do not overload bzero(), bcopy(), and bcmp() from strings.h
2019-03-07 08:39:20 +01:00
Bradley T. Hughes
e781060a52 Remove SSL_NEW() and SSL_FREE()
Do not overload functions from OpenSSL.
2019-03-07 08:00:09 +01:00
Bradley T. Hughes
043b102e38 Remove turn_strdup()
Do not overload strdup() from string.h
2019-03-07 08:00:08 +01:00
Bradley T. Hughes
abab870070 Remove turn_calloc()
Do not overload calloc() from stdlib.h
2019-03-07 07:59:04 +01:00
Bradley T. Hughes
b50fc77124 Remote turn_free()
Do not overload free() with a different API.
2019-03-07 07:58:12 +01:00
Bradley T. Hughes
31033c3ffa Remote turn_realloc()
Do not overload realloc() with a different API.
2019-03-07 07:57:35 +01:00
Bradley T. Hughes
fef016901e Remove turn_malloc()
Do not overload malloc() from stdlib.h
2019-03-06 23:38:20 +01:00
Bradley T. Hughes
ed91d4bc17 Remove turn_free_simple
Do not overload free() from stdlib.h
2019-03-06 23:34:25 +01:00
Mészáros Mihály
5e61bea8ec Bumping version number 2019-03-02 22:06:19 +01:00
Mészáros Mihály
41ebbfcd6a Fix indentation 2019-03-02 21:18:41 +01:00
Mészáros Mihály
53bae81e78 SPARC64 mem alingment fixes 2019-03-02 21:18:41 +01:00
Mészáros Mihály
7f201e86a6 Workaround for SPARC64 recv_ttl=0
Quick & Dirty fix to use default TTL
TODO: to find a better fix..
2019-03-02 19:41:47 +01:00
Alexander Terczka
8b49313874 simplified striping white spaces from config file ends 2019-02-15 00:25:06 +01:00
Mészáros Mihály
856c3c9ff6 Fix typos and other regressions 2019-01-29 14:47:56 +01:00
Mészáros Mihály
2d59a5de2b readd pwd check
regression from 4.5.1.0
2019-01-29 13:13:13 +01:00
Mészáros Mihály
75d55ff0e0
Merge pull request #303 from chakmeshma/master
Misspelling Correction (Enpoint)
2019-01-29 11:02:13 +01:00
Mészáros Mihály
fc5a5452f9
Merge pull request #330 from gribunin/master
Fixed missed \r\n symbols in HTTP headers from HTTPS management UI
2019-01-29 11:00:47 +01:00
Kirill Gribunin
5d54bd5335 Fixed missed \r\n symbols in HTTP headers from HTTPS management interface when no admin users defined 2019-01-18 19:18:34 +03:00
Mészáros Mihály
6b2fc221ce empty cli-password not allowed=>disable telnet cli
Adds a warning to set a cli-password and disable telnet cli interface.
2019-01-18 12:52:55 +01:00
Alexander Terczka
9379e52d65 strip white-spaces from config file lines end, use arg="value " syntax if you need space at the end 2019-01-14 16:36:19 +01:00