do_connect: LWIP_ERROR on invalid/disabled protocol

This commit is contained in:
goldsimon 2009-08-30 20:24:08 +00:00
parent cff3e0cad2
commit 8a7c1c4926

View File

@ -807,6 +807,8 @@ do_connect(struct api_msg_msg *msg)
break;
#endif /* LWIP_TCP */
default:
LWIP_ERROR("Invalid netconn type", 0, do{ msg->conn->err = ERR_VAL;
sys_sem_signal(msg->conn->op_completed); }while(0));
break;
}
}