Browse Source

Merge pull request #442 from chanduthedev/ssh-length

Updated incorrect string length check for 'ssh'
Mészáros Mihály 6 years ago
parent
commit
8c8af9ec85
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/apps/common/ns_turn_utils.c

+ 1 - 1
src/apps/common/ns_turn_utils.c

@@ -556,7 +556,7 @@ int get_default_protocol_port(const char* scheme, size_t slen)
 				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;