NETCFG: fix condition to check whether a filedescriptor is there or not.