router_readconfig: fix embarassing logic error