]> git.openfabrics.org - ~shefty/ibacm.git/commitdiff
Refresh of err-resolve-gid
authorSean Hefty <sean.hefty@intel.com>
Thu, 5 Apr 2012 23:32:38 +0000 (16:32 -0700)
committerSean Hefty <sean.hefty@intel.com>
Thu, 5 Apr 2012 23:32:38 +0000 (16:32 -0700)
src/acme.c

index 768f17e495f2a717810db1da7f202f0360a24367..f9ea74f9cc16d64ccee064c332d88fff4a932f19 100644 (file)
@@ -513,13 +513,13 @@ static int resolve_gid(struct ibv_path_record *path)
        ret = inet_pton(AF_INET6, src_addr, &path->sgid);
        if (ret <= 0) {
                printf("inet_pton error on source address (%s): 0x%x\n", src_addr, ret);
-               return ret;
+               return ret ? ret : -1;
        }
 
        ret = inet_pton(AF_INET6, dest_addr, &path->dgid);
        if (ret <= 0) {
                printf("inet_pton error on dest address (%s): 0x%x\n", dest_addr, ret);
-               return ret;
+               return ret ? ret : -1;
        }
 
        path->reversible_numpath = IBV_PATH_RECORD_REVERSIBLE | 1;