fix function ends without a return statement

fail if i compile freegeoip