Commit 6d48414d authored by Eliot Blennerhassett's avatar Eliot Blennerhassett Committed by Alessandro Rubini

buf_out is not valid until posix_net_init()

So don't check it in startup.
Signed-off-by: 's avatarEliot Blennerhassett <eblennerhassett@audioscience.com>
parent 6ad34b16
......@@ -364,6 +364,9 @@ int posix_net_init(struct pp_instance *ppi)
int i;
ppi->buf_out = calloc(1, PP_PACKET_SIZE + NP(ppi)->proto_ofst);
if (!ppi->buf_out)
return -1;
ppi->buf_out = PROTO_PAYLOAD(ppi->buf_out);
if (OPTS(ppi)->ethernet_mode) {
......
......@@ -47,8 +47,7 @@ int main(int argc, char **argv)
if ((!ppi->defaultDS) || (!ppi->currentDS) || (!ppi->parentDS)
|| (!ppi->portDS) || (!ppi->timePropertiesDS) || (!ppi->sent_seq_id)
|| (!ppi->net_path) || (!ppi->buf_out)
|| (!ppi->frgn_master) || (!ppi->arch_data)
|| (!ppi->net_path) || (!ppi->frgn_master) || (!ppi->arch_data)
)
exit(__LINE__);
......
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