ustream-ssl: always check connection at the beginning of a session
authorFelix Fietkau <nbd@openwrt.org>
Sat, 15 Mar 2014 12:59:07 +0000 (13:59 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 15 Mar 2014 12:59:07 +0000 (13:59 +0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
ustream-ssl.c

index 0ae5df678adc4b441010638f356dd6b97d43ddce..b182308039dc3c2b62b13491c2d276850ed89be4 100644 (file)
@@ -178,6 +178,7 @@ static int _ustream_ssl_init(struct ustream_ssl *us, struct ustream *conn, void
        conn->next = &us->stream;
        ustream_set_io(ctx, us->ssl, conn);
        ustream_ssl_stream_init(us);
+       ustream_ssl_check_conn(us);
 
        return 0;
 }