Mercurial > dropbear
comparison process-packet.c @ 925:bae0b34bc059 pam
Better PAM through recursion
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 12 Mar 2014 23:40:02 +0800 |
parents | cbc73a5aefb0 |
children | 73ea0dce9a57 |
comparison
equal
deleted
inserted
replaced
923:25b7ed9fe854 | 925:bae0b34bc059 |
---|---|
33 #include "dbrandom.h" | 33 #include "dbrandom.h" |
34 #include "service.h" | 34 #include "service.h" |
35 #include "auth.h" | 35 #include "auth.h" |
36 #include "channel.h" | 36 #include "channel.h" |
37 | 37 |
38 #define MAX_UNAUTH_PACKET_TYPE SSH_MSG_USERAUTH_PK_OK | 38 #define MAX_UNAUTH_PACKET_TYPE 61 |
39 | 39 |
40 static void recv_unimplemented(); | 40 static void recv_unimplemented(); |
41 | 41 |
42 /* process a decrypted packet, call the appropriate handler */ | 42 /* process a decrypted packet, call the appropriate handler */ |
43 void process_packet() { | 43 void process_packet() { |
142 /* TODO do something more here? */ | 142 /* TODO do something more here? */ |
143 TRACE(("preauth unknown packet")) | 143 TRACE(("preauth unknown packet")) |
144 recv_unimplemented(); | 144 recv_unimplemented(); |
145 | 145 |
146 out: | 146 out: |
147 buf_free(ses.payload); | 147 if (ses.payload) { |
148 ses.payload = NULL; | 148 buf_free(ses.payload); |
149 ses.payload = NULL; | |
150 } | |
149 | 151 |
150 TRACE2(("leave process_packet")) | 152 TRACE2(("leave process_packet")) |
151 } | 153 } |
152 | 154 |
153 | 155 |