Commit Graph

236 Commits

Author SHA1 Message Date
Dragos Oancea 356a403a17 [sofia-sip] scan-build: Access to field 'ai_addr' results in a dereference of a null pointer (loaded from variable 'res') 2020-02-12 01:39:18 +00:00
Andrey Volk 92a2785349
Merge pull request #294 from dragos-oancea/sofia-tport_type_tcp-val-never-read
[sofia-sip] scan-build: Value stored to 'why' is never read - tport_tcp_ping()
2020-02-12 00:35:33 +04:00
Dragos Oancea f22340c776 [sofia-sip] scan-build: Value stored to 'why' is never read - tport_tcp_ping() 2020-01-31 21:32:22 +00:00
Dragos Oancea f7032c797e [sofia-sip] scan-build: Value stored to 'options' is never read - tls_init_context() 2020-01-31 21:21:09 +00:00
Dragos Oancea e3b1fb91c8 [sofia-sip] fix overflow in logging (tport)
[sofia-sip] bump .update
2020-01-20 19:46:51 +04:00
Andrey Volk 8126d1f482 [sofia-sip] Fix memory leak when a tcp connection gives POLLERR due to RST. 2019-12-31 00:54:49 +04:00
Andrey Volk 0af811bb24 [sofia-sip] Fix memory leak when incomplete tls connection. 2019-12-31 00:49:50 +04:00
Chris Rienzo d61a20ce6a FS-11867 [sofia] Send siptrace logs in a single log callback. 2019-07-18 00:24:30 +04:00
joshebosh 72986c6919 FS-11679 [mod_sofia] SIP message sent by FS logged incompletely in tport dump log 2019-06-06 11:44:27 -04:00
Luke Wahlmeier 2ba80c056e FS-11342: fixed hep3 capture_id 2019-04-24 15:07:32 -06:00
Mike Jerris 4fcbc7a87d Merge pull request #1578 in FS/freeswitch from ~TOMP/freeswitch:bugfix/FS-9657-fix-HEP-TLS-capture to master
* commit '300b967cf90259686d3bdffe140731e129f75da2':
  FS-9657 [libsofia] This commit fixes missing HEP capture messages when incoming SIP messages arrive over encrypted TLS transport
2019-02-26 12:44:01 -06:00
Dragos Oancea 179430cecc FS-11622: WS headers case insensitive 2019-01-21 18:10:15 -05:00
Sergey Safarov abde630fea FS-11345: Fixed Werror=stringop-truncation for mod_opus
Fixed Werror=format-truncation on sofia-sip/libsofia-sip-ua/tport

Fixed Werror=format-truncation on mod/endpoints/mod_verto

Fixed unused-but-set-variable in mod_lua

Fixed Werror=format-truncation on libs/sofia-sip/libsofia-sip-ua/tport

Fixed Wunused-variable Wmaybe-uninitialized on mod_soundtouch

Fixed Wliteral-suffix for libs/unimrcp
2018-12-12 21:18:19 +00:00
Tom Parrott 300b967cf9 FS-9657 [libsofia] This commit fixes missing HEP capture messages when incoming SIP messages arrive over encrypted TLS transport 2018-08-29 13:11:06 +00:00
Anthony Minessale f3d8a3b07a FS-10762: [freeswitch-core] Websocket logic error 2018-07-24 07:21:35 +00:00
Anthony Minessale d395223fa2 FS-10762: [freeswitch-core] Websocket logic error #resolve 2018-07-24 07:21:35 +00:00
Anthony Minessale 180d427cd6 FS-8761: [freeswitch-core] Memory leak in FreeSWITCH 2018-07-24 07:21:33 +00:00
Anthony Minessale 34f0ab58c1 FS-10762: [freeswitch-core] Websocket logic error #resolve 2018-07-24 07:21:33 +00:00
Anthony Minessale c5e662c9bc FS-10762: [freeswitch-core] Websocket logic error 2018-07-24 07:21:33 +00:00
Andrey Volk f37f41ccb2 FS-9753: [mod_sofia] Fix crash when accessing the WSS interface via regular HTTPS 2018-02-21 22:59:42 +03:00
Anthony Minessale 04067b4e21 FS-10523: [freeswitch-core] Websocket disconnects prematurely #resolve 2017-07-20 02:55:38 -05:00
trevora 74f5b5675e FS-10395: [mod_sofia] Fix ssl error handling in tls sip traffic
Clears SSL error state.

Updates tport_tls.c to clear the SSL error state after an error occurs.

OpenSSL puts errors into a queue that is kept in thread local storage.
In some cases, such as when SSL_ERROR_SSL is returned by SSL_get_errror(),
OpenSSL will queue multiple errors for a single event. When this occurs,
OpenSSL will report an error the next time I/O is performed if the queue
is not cleared first, which can result in TLS connections being torn down
prematurely.
2017-07-06 17:44:26 -04:00
Mike Jerris d8fcb60155 FS-9785: changes to support newer openssl 2017-06-26 14:53:39 -05:00
Brian West dcc0bf72ec FS-10406: [mod_sofia] mod_sofia secure websocket connections SSLv3 and tls v1.0 is still not disabled #resolve 2017-06-21 08:51:50 -05:00
Mike Jerris fde6afda4c FS-10150: fix typo 2017-04-24 12:34:40 -05:00
Mike Jerris 6a781a1e2c FS-10150: fix typo 2017-04-22 08:45:57 -04:00
Anthony Minessale c922223541 FS-10150: [freeswitch-core] Reduce writes to closed ssl sockets -- same fix for non-ssl sockets #resolve 2017-04-21 15:43:40 -05:00
Anthony Minessale 014f40d0b8 FS-10150: [freeswitch-core] Reduce writes to closed ssl sockets 2017-04-06 17:06:44 -05:00
Anthony Minessale cd5182c27c FS-10150: [freeswitch-core] Reduce writes to closed ssl sockets #resolve 2017-03-17 13:47:35 -05:00
Mike Jerris a3ee7595bb FS-10025: fix global symbol scope issue causing modules to use another modules global pointer 2017-02-09 17:23:30 -06:00
Sebastian Kemper 1568194ce5 FS-9840 sofia-sip: fix implicit declaration warning
This fixes the following compile-time warning:

cc1: note: someone does not honour COPTS correctly, passed 2 times
	 LTCOMPILE tport_type_connect.lo
cc1: note: someone does not honour COPTS correctly, passed 2 times
	 LTCOMPILE tport_type_ws.lo
cc1: note: someone does not honour COPTS correctly, passed 2 times
	 LTCOMPILE ws.lo
cc1: note: someone does not honour COPTS correctly, passed 2 times
ws.c: In function 'hton64':
ws.c:730:14: error: implicit declaration of function '__bswap_64' [-Werror=implicit-function-declaration]
  else return __bswap_64(val);
              ^
cc1: all warnings being treated as errors
Makefile:1465: recipe for target 'ws.lo' failed
make[12]: *** [ws.lo] Error 1

Fix by including byteswap.h, which is available on Linux and also
everywhere glibc is used (wpa_supplicant includes this header the same
way).

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2016-12-23 21:44:27 +01:00
Seven Du b26fa6e17c FS-9810 fix ws write fail on slow network 2016-12-04 12:49:46 +08:00
William King 15a7156230 FS-9656 Coverity 1364971: resolve memory leak in new HEPv3 logging 2016-10-21 11:35:58 -05:00
Mike Jerris f35c2a4ec2 FS-9623: fix rare crash on startup due to openssl init functions being run multiple times 2016-10-07 15:33:50 -04:00
Anthony Minessale 5c43a17a04 FS-8761 2016-09-12 11:24:41 -05:00
Sebastian Denz ebaf95e709 FS-9452: fixed true/false logic for using dst flag 2016-08-22 16:36:37 +02:00
Anthony Minessale 8abc16f501 FS-8761 2016-08-08 16:39:44 -05:00
Anthony Minessale 1e7b4a1301 FS-8761 #resolve [Memory leak in FreeSWITCH] 2016-08-06 11:49:21 -05:00
Anthony Minessale 61c487c3e8 Revert "FS-8761 #resolve [Memory leak in FreeSWITCH]"
This reverts commit 341e94b28d.
2016-08-06 11:47:07 -05:00
Anthony Minessale 341e94b28d FS-8761 #resolve [Memory leak in FreeSWITCH] 2016-08-03 23:57:00 -05:00
Alexandr Dubovikov c6fa70054d FS-9227: [sofia-sip] fix Wrong byte order in HEP packet for source and destination ports 2016-06-07 12:30:58 -05:00
Mike Jerris e6d77e2813 Merge pull request #830 in FS/freeswitch from ~ETHANATKINS/freeswitch:ssl-transport to master
* commit 'db0dfe94d079e8b82c5ca93092faa2fe204b0d06':
  FS-9113 [sofia-sip] Clear out ssl error queue
2016-05-23 10:52:12 -05:00
Spencer Thomason 7f24fc7ab5 FS-9158 [sofia-sip] Add include for changes in 65460fa 2016-05-14 13:42:17 -07:00
Ethan Atkins db0dfe94d0 FS-9113 [sofia-sip] Clear out ssl error queue
Sofia will unpredictably close a tls transport during call setup. This
occurs when the epoll event loop wakes up the socket reader and SSL_read
returns an error because there is no packet on the socket. Normally
sofia will read the last error using SSL_get_error and return
SSL_ERROR_WANT_READ. Sofia gracefully handles this error and the
transport stays open. Sometimes, however, the worker thread will call
SSL_shutdown for a different transport, which can write an error to the
internal openssl error queue. If that error is not read off the queue,
the next time that SSL_get_error is called, it will read that unrelated
error.

The documentation for SSL_shutdown explains that there are three
possible results -1, 0 and 1 with, oddly, 1 indicating success. The -1
result code occurs when there is no handshake callback registered on the
connection. It can return 0 when there is still work to be done. The
documentation suggest that it is insufficient to call it just once. This
is why I added the do {} while () construct.

Although just the fix to SSL_shutdown was enough to resolve my issue, I
a also audited other calls to SSL_* functions and found a few other
cases where an error may be generated, but was not handled.
2016-04-30 10:39:47 -07:00
Michael Jerris 65460fae25 FS-9099: fix windows build 2016-04-28 14:29:39 -05:00
Michael Jerris 0ba86871b4 FS-9078: [sofia-sip] fix typo in HEP3 2016-04-27 15:34:17 -05:00
Mike Jerris 943e8ef323 FS-9099: [sofia-sip] fix windows build of websocket transport 2016-04-27 16:08:13 -04:00
Michael Jerris 3caa794f7a FS-9078: [sofia-sip] fix linux build of HEPv2/HEPv3 code 2016-04-27 16:02:00 -04:00
Michael Jerris c6d0a99495 FS-9078: [sofia-sip] fix linux build of HEPv2/HEPv3 code 2016-04-27 14:45:59 -05:00
Michael Jerris 6ce69adcb3 FS-9099: remove unneeded header include 2016-04-27 14:45:09 -05:00