[PATCH] Fix faulty error handling in inet.c