netlink: Make nl_sock_transact() always return a reply on success.
authorBen Pfaff <blp@nicira.com>
Thu, 20 May 2010 22:57:36 +0000 (15:57 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 17 Jun 2010 17:30:18 +0000 (10:30 -0700)
commita35fbea5bb1b49bcdad696a62c3814e02c4df6e2
tree3e585767ebc3b365dfed82a373b3bac4727be12c
parentb4d73e97bae62b5eb18bcd216b603b69ce63297b
netlink: Make nl_sock_transact() always return a reply on success.

Until now, if nl_sock_transact() received a reply that merely acknowledged
success, without providing any other payload, it would return success but
not provide the reply to its caller.  This is inconsistent and could easily
cause a segfault in a caller that expects to see the reply on success, if
kernel behavior changed, for whatever reason, so that a request that
previously returned data now just returns an acknowledgment.  In practice
this kind of change should never happen, but it is still better to handle
it properly.
lib/netlink.c