changeset 14:4538aa70440b

Apply patch for incorrerct string length check for 'ssh'. commit 8c8af9ec857810ce439b300965f031a766bc4299
author Franz Glasner <fzglas.hg@dom66.de>
date Sat, 28 Mar 2020 15:48:42 +0100
parents c7cf16351c81
children 18dd9a5710c6
files files/patch-src_apps_common_ns__turn__utils.c
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/files/patch-src_apps_common_ns__turn__utils.c	Sat Mar 28 15:48:42 2020 +0100
@@ -0,0 +1,11 @@
+--- src/apps/common/ns_turn_utils.c.orig	2019-03-02 21:06:19 UTC
++++ src/apps/common/ns_turn_utils.c
+@@ -556,7 +556,7 @@ int get_default_protocol_port(const char* scheme, size
+ 				return 21;
+ 			if(!memcmp("svn",scheme,3))
+ 				return 3690;
+-			if(!memcmp("ssh",scheme,4))
++			if(!memcmp("ssh",scheme,3))
+ 				return 22;
+ 			if(!memcmp("sip",scheme,3))
+ 				return 5060;