--- src/netcf.c.orig 2009-10-28 14:05:51.000000000 +0100 +++ src/netcf.c 2009-10-28 14:06:00.000000000 +0100 @@ -111,7 +111,8 @@ int ncf_close(struct netcf *ncf) { ERR_COND_BAIL(ncf->ref > 1, ncf, EINUSE); - drv_close(ncf); + if (ncf->driver != NULL) + drv_close(ncf); unref(ncf, netcf); return 0; error: