diff common-session.c @ 1031:64c0aa01e2b6 fastopen

Update priority once the socket is open
author Matt Johnston <matt@ucc.asn.au>
date Fri, 20 Feb 2015 22:13:53 +0800
parents 02baa0b334e8
children 0da8ba489c23
line wrap: on
line diff
--- a/common-session.c	Thu Feb 19 22:42:30 2015 +0800
+++ b/common-session.c	Fri Feb 20 22:13:53 2015 +0800
@@ -552,6 +552,11 @@
 
 	TRACE(("update_channel_prio"))
 
+	if (ses.sock_out < 0) {
+		TRACE(("leave update_channel_prio: no socket"))
+		return;
+	}
+
 	new_prio = DROPBEAR_PRIO_BULK;
 	for (i = 0; i < ses.chansize; i++) {
 		struct Channel *channel = ses.channels[i];