minor fixes

This commit is contained in:
Duncan Laurie 2006-07-14 22:36:50 +00:00
parent 9f6133936d
commit 6013cec710
2 changed files with 7 additions and 0 deletions

View File

@ -202,6 +202,7 @@ int ipmi_shell_main(struct ipmi_intf * intf, int argc, char ** argv)
free(pbuf);
}
printf("\n");
return rc;
}

View File

@ -269,9 +269,15 @@ ipmi_lan_recv_packet(struct ipmi_intf * intf)
}
}
if (ret == 0)
return NULL;
rsp.data[ret] = '\0';
rsp.data_len = ret;
if (verbose > 2)
printbuf(rsp.data, rsp.data_len, "recv_packet");
return &rsp;
}