[BACK]Return to session.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/session.c between version 1.91 and 1.92

version 1.91, 2001/06/19 14:09:45 version 1.92, 2001/06/19 15:40:45
Line 112 
Line 112 
 extern void destroy_sensitive_data(void);  extern void destroy_sensitive_data(void);
   
 /* original command from peer. */  /* original command from peer. */
 char *original_command = NULL;  const char *original_command = NULL;
   
 /* data */  /* data */
 #define MAX_SESSIONS 10  #define MAX_SESSIONS 10
Line 266 
Line 266 
                         if (type == SSH_CMSG_EXEC_CMD) {                          if (type == SSH_CMSG_EXEC_CMD) {
                                 command = packet_get_string(&dlen);                                  command = packet_get_string(&dlen);
                                 debug("Exec command '%.500s'", command);                                  debug("Exec command '%.500s'", command);
                                 packet_integrity_check(plen, 4 + dlen, type);                                  do_exec(s, command);
                                   xfree(command);
                         } else {                          } else {
                                 command = NULL;                                  do_exec(s, NULL);
                                 packet_integrity_check(plen, 0, type);  
                         }                          }
                         do_exec(s, command);                          packet_done();
                         session_close(s);                          session_close(s);
                         return;                          return;
   
Line 514 
Line 514 
         else          else
                 do_exec_no_pty(s, command);                  do_exec_no_pty(s, command);
   
         if (command != NULL)          original_command = NULL;
                 xfree(command);  
   
         if (original_command != NULL) {  
                 xfree(original_command);  
                 original_command = NULL;  
         }  
 }  }
   
   
Line 1320 
Line 1314 
         char *command = packet_get_string(&len);          char *command = packet_get_string(&len);
         packet_done();          packet_done();
         do_exec(s, command);          do_exec(s, command);
           xfree(command);
         return 1;          return 1;
 }  }
   

Legend:
Removed from v.1.91  
changed lines
  Added in v.1.92