Mercurial > dropbear
comparison common-session.c @ 1079:acf444bcb115
Fix no-writev fallback
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 02 May 2015 22:47:25 +0800 |
parents | 10f198d4a308 |
children | 8e0280986710 c45d65392c1a |
comparison
equal
deleted
inserted
replaced
1078:b3b772646974 | 1079:acf444bcb115 |
---|---|
1 /* | 1 /* |
2 * Dropbear - a SSH2 server | 2 * Dropbear - a SSH2 server |
3 * | 3 * |
4 * Copyright (c) 2002,2003 Matt Johnston | 4 * Copyright (c) Matt Johnston |
5 * All rights reserved. | 5 * All rights reserved. |
6 * | 6 * |
7 * Permission is hereby granted, free of charge, to any person obtaining a copy | 7 * Permission is hereby granted, free of charge, to any person obtaining a copy |
8 * of this software and associated documentation files (the "Software"), to deal | 8 * of this software and associated documentation files (the "Software"), to deal |
9 * in the Software without restriction, including without limitation the rights | 9 * in the Software without restriction, including without limitation the rights |
278 if (!sessinitdone) { | 278 if (!sessinitdone) { |
279 TRACE(("leave session_cleanup: !sessinitdone")) | 279 TRACE(("leave session_cleanup: !sessinitdone")) |
280 return; | 280 return; |
281 } | 281 } |
282 | 282 |
283 /* Beware of changing order of functions here. */ | 283 /* BEWARE of changing order of functions here. */ |
284 | 284 |
285 /* Must be before extra_session_cleanup() */ | 285 /* Must be before extra_session_cleanup() */ |
286 chancleanup(); | 286 chancleanup(); |
287 | 287 |
288 if (ses.extra_session_cleanup) { | 288 if (ses.extra_session_cleanup) { |
289 ses.extra_session_cleanup(); | 289 ses.extra_session_cleanup(); |
290 } | 290 } |
291 | 291 |
292 /* After these are freed most functions will exit */ | 292 /* After these are freed most functions will fail */ |
293 #ifdef DROPBEAR_CLEANUP | 293 #ifdef DROPBEAR_CLEANUP |
294 /* listeners call cleanup functions, this should occur before | 294 /* listeners call cleanup functions, this should occur before |
295 other session state is freed. */ | 295 other session state is freed. */ |
296 remove_all_listeners(); | 296 remove_all_listeners(); |
297 | 297 |