lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [patch #9373] apps/smtp: Don't allow pass NULL to smtp_set_


From: Axel Lin
Subject: [lwip-devel] [patch #9373] apps/smtp: Don't allow pass NULL to smtp_set_server_addr
Date: Wed, 7 Jun 2017 03:03:18 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36

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

                 Summary: apps/smtp: Don't allow pass NULL to
smtp_set_server_addr
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: axellin
            Submitted on: Wed 07 Jun 2017 07:03:17 AM UTC
                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 meaning of passing NULL to smtp_set_server_addr is ambiguous.
It does not clear the old setting.
Thus make it return error if server is NULL.
This also avoid calling MEMCPY with NULL even when len = 0.




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Wed 07 Jun 2017 07:03:17 AM UTC  Name:
0001-apps-smtp-Don-t-allow-pass-NULL-to-smtp_set_server_a.patch  Size: 996B  
By: axellin

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

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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