lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [patch #9202] tcp: Make tcp_listen_with_backlog_and_err ret


From: Axel Lin
Subject: [lwip-devel] [patch #9202] tcp: Make tcp_listen_with_backlog_and_err return NULL if the address/port is already used
Date: Sun, 1 Jan 2017 07:45:59 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36

URL:
  <http://savannah.nongnu.org/patch/?9202>

                 Summary: tcp: Make tcp_listen_with_backlog_and_err return
NULL if the address/port is already used
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: axellin
            Submitted on: Sun 01 Jan 2017 07:45:58 AM GMT
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None

    _______________________________________________________

Details:

The caller of tcp_listen_with_backlog_and_err() usually check if the return
pcb is NULL before checking the err reason. I think the commit adding
tcp_listen_with_backlog_and_err() accidently change the behavior, Fix it.

Fixes: 98fc82fa7128 ("added function tcp_listen_with_backlog_and_err() to get
the error reason when listening fails")



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sun 01 Jan 2017 07:45:58 AM GMT  Name:
0001-tcp-Make-tcp_listen_with_backlog_and_err-return-NULL.patch  Size: 1kB  
By: axellin

<http://savannah.nongnu.org/patch/download.php?file_id=39337>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?9202>

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




reply via email to

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