Develop and Download Open Source Software

Browse Subversion Repository

Diff of /branches/ssh_chacha20poly1305/ttssh2/ttxssh/ttxssh.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3188 by doda, Tue Dec 16 05:15:59 2008 UTC revision 3189 by doda, Tue Dec 16 05:50:45 2008 UTC
# Line 1662  static int parse_option(PTInstVar pvar, Line 1662  static int parse_option(PTInstVar pvar,
1662                  option[hostlen] = 0;                  option[hostlen] = 0;
1663    
1664                  // ポート指定が無い時は":22"を足す                  // ポート指定が無い時は":22"を足す
1665    #ifndef NO_INET6
1666                    if (option[0] == '[' && option[hostlen-1] == ']' ||     // IPv6 raw address without port
1667                        option[0] != '[' && strchr(option, ':') == NULL) {  // hostname or IPv4 raw address without port
1668    #else
1669                  if (strchr(option, ':') == NULL) {                  if (strchr(option, ':') == NULL) {
1670    #endif                                                  /* NO_INET6 */
1671                          memcpy_s(option+hostlen, optlen-hostlen, ":22", 3);                          memcpy_s(option+hostlen, optlen-hostlen, ":22", 3);
1672                          hostlen += 3;                          hostlen += 3;
1673                  }                  }

Legend:
Removed from v.3188  
changed lines
  Added in v.3189

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26