Merge tag 'nfsd-4.4-1' of git://linux-nfs.org/~bfields/linux
[firefly-linux-kernel-4.4.55.git] / net / sctp / sm_statefuns.c
index 6f46aa16cb76963de27cb87e5e8cedf617a259a9..cd34a4a3406578954d5831b8304162c7102d8cec 100644 (file)
@@ -5412,7 +5412,8 @@ sctp_disposition_t sctp_sf_do_6_3_3_rtx(struct net *net,
        SCTP_INC_STATS(net, SCTP_MIB_T3_RTX_EXPIREDS);
 
        if (asoc->overall_error_count >= asoc->max_retrans) {
-               if (asoc->state == SCTP_STATE_SHUTDOWN_PENDING) {
+               if (asoc->peer.zero_window_announced &&
+                   asoc->state == SCTP_STATE_SHUTDOWN_PENDING) {
                        /*
                         * We are here likely because the receiver had its rwnd
                         * closed for a while and we have not been able to