fixed a bug in conet.c related to allocation of headers