@@ -2002,7 +2002,7 @@ tcp_rst(const struct tcp_pcb *pcb, u32_t seqno, u32_t ackno,
20022002 LWIP_DEBUGF (TCP_DEBUG , ("tcp_rst: could not allocate memory for pbuf\n" ));
20032003 return ;
20042004 }
2005- tcp_output_fill_options (pcb , p , 0 , optlen );
2005+ tcp_output_fill_options (pcb , p , 0 , 0 );
20062006
20072007 MIB2_STATS_INC (mib2 .tcpoutrsts );
20082008
@@ -2096,7 +2096,7 @@ tcp_keepalive(struct tcp_pcb *pcb)
20962096 ("tcp_keepalive: could not allocate memory for pbuf\n" ));
20972097 return ERR_MEM ;
20982098 }
2099- tcp_output_fill_options (pcb , p , 0 , optlen );
2099+ tcp_output_fill_options (pcb , p , 0 , 0 );
21002100 err = tcp_output_control_segment (pcb , p , & pcb -> local_ip , & pcb -> remote_ip );
21012101
21022102 LWIP_DEBUGF (TCP_DEBUG , ("tcp_keepalive: seqno %" U32_F " ackno %" U32_F " err %d.\n" ,
@@ -2178,7 +2178,7 @@ tcp_zero_window_probe(struct tcp_pcb *pcb)
21782178 if (TCP_SEQ_LT (pcb -> snd_nxt , snd_nxt )) {
21792179 pcb -> snd_nxt = snd_nxt ;
21802180 }
2181- tcp_output_fill_options (pcb , p , 0 , optlen );
2181+ tcp_output_fill_options (pcb , p , 0 , 0 );
21822182
21832183 err = tcp_output_control_segment (pcb , p , & pcb -> local_ip , & pcb -> remote_ip );
21842184
0 commit comments