Skip to content

Commit

Permalink
Updated incorrect string length check for 'ssh'
Browse files Browse the repository at this point in the history
ssh length should be 3, but checking for 4. So updated memcmp method to 3 instead of 4.
  • Loading branch information
chanduthedev committed Sep 27, 2019
1 parent 24397e8 commit 9b0e53c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/apps/common/ns_turn_utils.c
Expand Up @@ -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;
Expand Down

0 comments on commit 9b0e53c

Please sign in to comment.