Develop and Download Open Source Software

Browse Subversion Repository

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

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

revision 3109 by maya, Wed Feb 13 16:36:41 2008 UTC revision 3119 by yutakapon, Sun Mar 2 10:59:24 2008 UTC
# Line 2904  void SSH_get_protocol_version_info(PTIns Line 2904  void SSH_get_protocol_version_info(PTIns
2904  void SSH_end(PTInstVar pvar)  void SSH_end(PTInstVar pvar)
2905  {  {
2906          int i;          int i;
2907            int mode;
2908    
2909          for (i = 0; i < 256; i++) {          for (i = 0; i < 256; i++) {
2910                  SSHPacketHandlerItem FAR *first_item =                  SSHPacketHandlerItem FAR *first_item =
# Line 2994  void SSH_end(PTInstVar pvar) Line 2995  void SSH_end(PTInstVar pvar)
2995                  }                  }
2996    
2997                  pvar->tryed_ssh2_authlist = FALSE;                  pvar->tryed_ssh2_authlist = FALSE;
2998    
2999                    // add (2008.3.2 yutaka)
3000                    for (mode = 0 ; mode < MODE_MAX ; mode++) {
3001                            if (pvar->ssh2_keys[mode].enc.iv != NULL) {
3002                                    free(pvar->ssh2_keys[mode].enc.iv);
3003                                    pvar->ssh2_keys[mode].enc.iv = NULL;
3004                            }
3005                            if (pvar->ssh2_keys[mode].enc.key != NULL) {
3006                                    free(pvar->ssh2_keys[mode].enc.key);
3007                                    pvar->ssh2_keys[mode].enc.key = NULL;
3008                            }
3009                            if (pvar->ssh2_keys[mode].mac.key != NULL) {
3010                                    free(pvar->ssh2_keys[mode].mac.key);
3011                                    pvar->ssh2_keys[mode].mac.key = NULL;
3012                            }
3013                    }
3014          }          }
3015  #endif  #endif
3016    

Legend:
Removed from v.3109  
changed lines
  Added in v.3119

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