diff options
Diffstat (limited to 'net/dhcp.c')
-rw-r--r-- | net/dhcp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/dhcp.c b/net/dhcp.c index 8233ec3502..7324c94838 100644 --- a/net/dhcp.c +++ b/net/dhcp.c @@ -767,8 +767,10 @@ static int do_dhcp(int argc, char *argv[]) goto out1; while (dhcp_state != BOUND) { - if (ctrlc()) - break; + if (ctrlc()) { + ret = -EINTR; + goto out1; + } if (!retries) { ret = -ETIMEDOUT; goto out1; |