conet.c fixed by giuseppe