diff --git a/net/dhcp.c b/net/dhcp.c index 8233ec3..7324c94 100644 --- a/net/dhcp.c +++ b/net/dhcp.c @@ -767,8 +767,10 @@ goto out1; while (dhcp_state != BOUND) { - if (ctrlc()) - break; + if (ctrlc()) { + ret = -EINTR; + goto out1; + } if (!retries) { ret = -ETIMEDOUT; goto out1;