comparison process-packet.c @ 511:582cb38e4eb5 insecure-nocrypto

propagate from branch 'au.asn.ucc.matt.dropbear' (head cdcc3c729e29544e8b98a408e2dc60e4483dfd2a) to branch 'au.asn.ucc.matt.dropbear.insecure-nocrypto' (head 0ca38a1cf349f7426ac9de34ebe4c3e3735effab)
author Matt Johnston <matt@ucc.asn.au>
date Thu, 06 Nov 2008 13:16:55 +0000
parents 7e43f5e473b9
children 6cd2152aae0b a3748e54273c
comparison
equal deleted inserted replaced
361:461c4b1fb35f 511:582cb38e4eb5
54 54
55 /* These packets we can receive at any time */ 55 /* These packets we can receive at any time */
56 switch(type) { 56 switch(type) {
57 57
58 case SSH_MSG_IGNORE: 58 case SSH_MSG_IGNORE:
59 goto out;
59 case SSH_MSG_DEBUG: 60 case SSH_MSG_DEBUG:
60 TRACE(("received SSH_MSG_IGNORE or SSH_MSG_DEBUG"))
61 goto out; 61 goto out;
62 62
63 case SSH_MSG_UNIMPLEMENTED: 63 case SSH_MSG_UNIMPLEMENTED:
64 /* debugging XXX */ 64 /* debugging XXX */
65 TRACE(("SSH_MSG_UNIMPLEMENTED")) 65 TRACE(("SSH_MSG_UNIMPLEMENTED"))
117 /* TODO do something more here? */ 117 /* TODO do something more here? */
118 TRACE(("preauth unknown packet")) 118 TRACE(("preauth unknown packet"))
119 recv_unimplemented(); 119 recv_unimplemented();
120 120
121 out: 121 out:
122 buf_burn(ses.payload); /* Clear the memory to avoid swapping it out */
123 buf_free(ses.payload); 122 buf_free(ses.payload);
124 ses.payload = NULL; 123 ses.payload = NULL;
125 124
126 TRACE(("leave process_packet")) 125 TRACE(("leave process_packet"))
127 } 126 }