char-socket: fix error reporting
Right now the inet connect code tries all available addresses but until one
doesn't fail. It passes local_err each time without clearing it from the
previous failure. This can trigger an assert since the inet connect code
tries to set an error on an object != NULL.
Signed-off-by: Anthony Liguori <[email protected]>
Signed-off-by: Amit Shah <[email protected]>
Message-id:
16c806d60aa5e9660ed7751bb4e37dcd278f97f0.
1362505276[email protected]
Signed-off-by: Anthony Liguori <[email protected]>