comparison svr-service.c @ 641:2b1bb792cd4d dropbear-tfm

- Update tfm changes to current default tip
author Matt Johnston <matt@ucc.asn.au>
date Mon, 21 Nov 2011 19:52:28 +0800
parents a98a2138364a
children 848dac90c923
comparison
equal deleted inserted replaced
640:76097ec1a29a 641:2b1bb792cd4d
55 55
56 /* ssh-connection */ 56 /* ssh-connection */
57 if (len == SSH_SERVICE_CONNECTION_LEN && 57 if (len == SSH_SERVICE_CONNECTION_LEN &&
58 (strncmp(SSH_SERVICE_CONNECTION, name, len) == 0)) { 58 (strncmp(SSH_SERVICE_CONNECTION, name, len) == 0)) {
59 if (ses.authstate.authdone != 1) { 59 if (ses.authstate.authdone != 1) {
60 dropbear_exit("request for connection before auth"); 60 dropbear_exit("Request for connection before auth");
61 } 61 }
62 62
63 send_msg_service_accept(name, len); 63 send_msg_service_accept(name, len);
64 m_free(name); 64 m_free(name);
65 TRACE(("leave recv_msg_service_request: done ssh-connection")) 65 TRACE(("leave recv_msg_service_request: done ssh-connection"))
66 return; 66 return;
67 } 67 }
68 68
69 m_free(name); 69 m_free(name);
70 /* TODO this should be a MSG_DISCONNECT */ 70 /* TODO this should be a MSG_DISCONNECT */
71 dropbear_exit("unrecognised SSH_MSG_SERVICE_REQUEST"); 71 dropbear_exit("Unrecognised SSH_MSG_SERVICE_REQUEST");
72 72
73 73
74 } 74 }
75 75
76 static void send_msg_service_accept(unsigned char *name, int len) { 76 static void send_msg_service_accept(unsigned char *name, int len) {