]> git.openfabrics.org - ~shefty/ibacm.git/commit
ib_acme: Better error handling in resolve_gid
authorHal Rosenstock <hal@mellanox.com>
Thu, 5 Apr 2012 23:29:52 +0000 (16:29 -0700)
committerSean Hefty <sean.hefty@intel.com>
Thu, 5 Apr 2012 23:29:52 +0000 (16:29 -0700)
commita17cfa675538335b9650607ea3574a4a427eee8c
treeef30d4769ae20a3994fb559aacbb91d3b16e4415
parentee6aa496369bc10e9975aa1e013445050a1c4510
ib_acme: Better error handling in resolve_gid

A return of 0 is an error for inet_pton but if 0 is returned
from resolve_gid, show_path is mistakenly called so if
0 is returned from inet_pton, return -1 instead (which is
what is done elsewhere in acme).

Signed-off-by: Hal Rosenstock <hal@mellanox.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>