fixed loop termination criterion in addr_in_subnet(). Thanks go to Wolfgang Steudel...