Bug #2798: fix clean_is_network()