… | |
… | |
106 | tstamp stamp; |
106 | tstamp stamp; |
107 | const packet_type *handler; |
107 | const packet_type *handler; |
108 | char *data; |
108 | char *data; |
109 | int datalen; |
109 | int datalen; |
110 | |
110 | |
111 | command (tstamp stamp, const packet_type *handler, char *data, int datalen) |
111 | ~command () |
112 | : stamp (stamp), handler (handler), data (data), datalen (datalen) |
|
|
113 | { |
112 | { |
|
|
113 | sfree (data, datalen); |
114 | } |
114 | } |
115 | }; |
115 | }; |
116 | |
116 | |
117 | /* how many times we are allowed to give the wrong password before being kicked. */ |
117 | /* how many times we are allowed to give the wrong password before being kicked. */ |
118 | #define MAX_PASSWORD_FAILURES 5 |
118 | #define MAX_PASSWORD_FAILURES 5 |