Commit bd79cb22 by Dwight Engen Committed by Stéphane Graber

fix lxc-info segv on stopped container

parent 8983aa6e
......@@ -124,6 +124,7 @@ int main(int argc, char *argv[])
if (ips) {
char **addresses = c->get_ips(c, NULL, NULL, 0);
if (addresses) {
char *address;
i = 0;
while (addresses[i]) {
......@@ -132,6 +133,7 @@ int main(int argc, char *argv[])
i++;
}
}
}
for(i = 0; i < keys; i++) {
int len = c->get_config_item(c, key[i], NULL, 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment