Message ID | 1343750695-28063-4-git-send-email-alexne@mellanox.com (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | Alex Netes |
Headers | show |
diff --git a/opensm/osm_prtn_config.c b/opensm/osm_prtn_config.c index 6798979..750cbe0 100644 --- a/opensm/osm_prtn_config.c +++ b/opensm/osm_prtn_config.c @@ -670,6 +670,7 @@ skip_header: if (q) *q++ = '\0'; ret = parse_name_token(p, &name, &flag); + len += ret; if (strcmp(name, "mgid") == 0) { /* parse an mgid line if specified. */ @@ -685,7 +686,6 @@ skip_header: return -1; } p += ret; - len += ret; } while (q); done: