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

Diff for /src/usr.bin/ssh/packet.c between version 1.181.2.1 and 1.182

version 1.181.2.1, 2013/11/08 05:52:21 version 1.182, 2013/04/11 02:27:50
Line 979 
Line 979 
                     (type == SSH2_MSG_SERVICE_REQUEST) ||                      (type == SSH2_MSG_SERVICE_REQUEST) ||
                     (type == SSH2_MSG_SERVICE_ACCEPT)) {                      (type == SSH2_MSG_SERVICE_ACCEPT)) {
                         debug("enqueue packet: %u", type);                          debug("enqueue packet: %u", type);
                         p = xcalloc(1, sizeof(*p));                          p = xmalloc(sizeof(*p));
                         p->type = type;                          p->type = type;
                         memcpy(&p->payload, &active_state->outgoing_packet,                          memcpy(&p->payload, &active_state->outgoing_packet,
                             sizeof(Buffer));                              sizeof(Buffer));
Line 1448 
Line 1448 
                         case SSH2_MSG_DISCONNECT:                          case SSH2_MSG_DISCONNECT:
                                 reason = packet_get_int();                                  reason = packet_get_int();
                                 msg = packet_get_string(NULL);                                  msg = packet_get_string(NULL);
                                 error("Received disconnect from %s: %u: %.400s",                                  /* Ignore normal client exit notifications */
                                   do_log2(active_state->server_side &&
                                       reason == SSH2_DISCONNECT_BY_APPLICATION ?
                                       SYSLOG_LEVEL_INFO : SYSLOG_LEVEL_ERROR,
                                       "Received disconnect from %s: %u: %.400s",
                                     get_remote_ipaddr(), reason, msg);                                      get_remote_ipaddr(), reason, msg);
                                 xfree(msg);                                  xfree(msg);
                                 cleanup_exit(255);                                  cleanup_exit(255);

Legend:
Removed from v.1.181.2.1  
changed lines
  Added in v.1.182