lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [bug #61592] tcp_free_listen(): assertion condition error,


From: quanjia
Subject: [lwip-devel] [bug #61592] tcp_free_listen(): assertion condition error, should be: pcb->state == LISTEN
Date: Tue, 30 Nov 2021 20:35:44 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36

URL:
  <https://savannah.nongnu.org/bugs/?61592>

                 Summary: tcp_free_listen(): assertion condition error, should
be: pcb->state == LISTEN
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: quanjia
            Submitted on: Wed 01 Dec 2021 01:35:42 AM UTC
                Category: TCP
                Severity: 3 - Normal
              Item Group: Faulty Behaviour
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None
            lwIP version: git head

    _______________________________________________________

Details:

/** Free a tcp listen pcb */
static void
tcp_free_listen(struct tcp_pcb *pcb)
{
  LWIP_ASSERT("tcp_free_listen: !LISTEN", pcb->state != LISTEN); *<----here it
should be pcb->state == LISTEN *
#if LWIP_TCP_PCB_NUM_EXT_ARGS
  tcp_ext_arg_invoke_callbacks_destroyed(pcb->ext_args);
#endif
  memp_free(MEMP_TCP_PCB_LISTEN, pcb);
}

this might cause resource leak.




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Wed 01 Dec 2021 01:35:42 AM UTC  Name:
0001-tcp_free_listen-assertion-condition-error-should-be-.patch  Size: 778B  
By: quanjia

<http://savannah.nongnu.org/bugs/download.php?file_id=52394>

    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/bugs/?61592>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]