diff options
author | Ben Pfaff <blp@nicira.com> | 2012-11-07 12:55:53 -0800 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2012-11-07 13:00:02 -0800 |
commit | a767b116fdd8ec57ac82d32805275a7bbf5f92fe (patch) | |
tree | 0d2707be7c732bcd2549c8394b4c45a9c7a260e6 /configure.ac | |
parent | 515b2ed4a0d0c8b78fae33d5307fa93e8609394e (diff) |
socket-util: Report fd of -1 on error in inet_open_active().
inet_open_active() is documented to report a fd of -1 when an error occurs.
All three of its callers rely on this, by checking only the fd to determine
whether there was an error. This means that if the call to
set_nonblocking() or set_dscp() or connect() failed, then the callers would
try to use a fd that had already been closed, wreaking havoc.
This fixes a bug introduced in commit a4efa3fc5d (socket-util: Close socket
on failed dscp modification.)
Bug #13750.
Reported-by: Scott Hendricks <shendricks@vmware.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
Diffstat (limited to 'configure.ac')
0 files changed, 0 insertions, 0 deletions