unixctl: Use ovs_retval_to_string() where EOF is a possible value.
authorBen Pfaff <blp@nicira.com>
Thu, 24 Jan 2013 21:46:23 +0000 (13:46 -0800)
committerBen Pfaff <blp@nicira.com>
Fri, 1 Feb 2013 22:27:13 +0000 (14:27 -0800)
commit2bf1d3cc12de50fe05a2a61780ce2450be532084
tree8891bf3661422a2264293aca5b81451e36258381
parent8450059ee8c1564f5d3be2e5d9c303360d1226e4
unixctl: Use ovs_retval_to_string() where EOF is a possible value.

jsonrpc_transact_block() might return EOF so passing its return value to
strerror() isn't general enough.

It might be better to change jsonrpc_transact{_block}() to never return
EOF, since a closed connection seems like it is always an error in that
context.

Found by Coverity.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
lib/unixctl.c