summaryrefslogtreecommitdiff
path: root/networking/udhcp/dhcpc.c
diff options
context:
space:
mode:
authorJustin Maggard2009-08-13 01:26:17 +0200
committerDenys Vlasenko2009-08-13 01:26:17 +0200
commitaa369e0f0d37ba915616d77154ca8e99fb4d71b5 (patch)
treea7689dd188a221219c53e633faefaaaffd5d3158 /networking/udhcp/dhcpc.c
parent4803db53b874aa5182944927c10d632333ad4f0e (diff)
downloadbusybox-aa369e0f0d37ba915616d77154ca8e99fb4d71b5.zip
busybox-aa369e0f0d37ba915616d77154ca8e99fb4d71b5.tar.gz
udhcpc: if got IP successfully, disable -n for future renewals
Signed-off-by: Justin Maggard <jmaggard10@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/udhcp/dhcpc.c')
-rw-r--r--networking/udhcp/dhcpc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c
index fbb6457..ccc0393 100644
--- a/networking/udhcp/dhcpc.c
+++ b/networking/udhcp/dhcpc.c
@@ -637,6 +637,8 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv)
perform_release(requested_ip, server_addr);
goto ret0;
}
+ /* future renew failures should not exit (JM) */
+ opt &= ~OPT_n;
#if BB_MMU /* NOMMU case backgrounded earlier */
if (!(opt & OPT_f)) {
client_background();