lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #45708] LWIP_ASSERT in api_msg.c, function err_tcp, se


From: Paul Szego
Subject: [lwip-devel] [bug #45708] LWIP_ASSERT in api_msg.c, function err_tcp, seems wrong.
Date: Thu, 06 Aug 2015 17:17:13 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_4) AppleWebKit/600.7.12 (KHTML, like Gecko) Version/8.0.7 Safari/600.7.12

URL:
  <http://savannah.nongnu.org/bugs/?45708>

                 Summary: LWIP_ASSERT in api_msg.c, function err_tcp, seems
wrong.
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: pszego
            Submitted on: Thu 06 Aug 2015 05:17:12 PM GMT
                Category: TCP
                Severity: 3 - Normal
              Item Group: Faulty Behaviour
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 
            lwIP version: git head

    _______________________________________________________

Details:

The LWIP_ASSERT at line 418, in function err_tcp() doesn't seem correct:

      LWIP_ASSERT("inavlid op_completed_sem", op_completed_sem !=
SYS_SEM_NULL);

The declaration of op_completed_sem:

    sys_sem_t* op_completed_sem

so it's a *pointer* to a sys_sem_t, whereas SYS_SEM_NULL is just a plain
sys_sem_t. Perhaps replace that assert with this:

      LWIP_ASSERT("inavlid op_completed_sem", *op_completed_sem !=
SYS_SEM_NULL);





    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?45708>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

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