[fabbione/kronosnet] a61cb7: [libtap] change error check code to avoid a segfau...