libmultipath: fix return code of sgio_get_vpd()
[multipath-tools/.git] / libmultipath / discovery.c
index ab7794d..c53d3aa 100644 (file)
@@ -852,7 +852,7 @@ retry:
                        return len;
                if (len > DEFAULT_SGIO_LEN)
                        goto retry;
-               return 0;
+               return len;
        }
        return -1;
 }