diff options
| author | Roy Marples <roy@marples.name> | 2008-10-18 18:46:22 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2008-10-18 18:46:22 +0000 |
| commit | 58656754e785474455ad470a9b0f83294fc0dd46 (patch) | |
| tree | 8bb43b6d030f7602363f49ea6ee4ba72f9eddec2 /if-options.c | |
| parent | eae4f5b4724b0a237bdf036479435e553b6ecd90 (diff) | |
| download | dhcpcd-58656754e785474455ad470a9b0f83294fc0dd46.tar.xz | |
Fix reading netmask and linux informing.
Diffstat (limited to 'if-options.c')
| -rw-r--r-- | if-options.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/if-options.c b/if-options.c index 85d2bfce..3965119d 100644 --- a/if-options.c +++ b/if-options.c @@ -267,7 +267,7 @@ static int parse_option(struct if_options *ifo, int opt, const char *arg) { int i; - char *p; + char *p = NULL; ssize_t s; struct in_addr addr; @@ -376,6 +376,9 @@ parse_option(struct if_options *ifo, int opt, const char *arg) arg); return -1; } + /* Restore the slash */ + if (ifo->options & DHCPCD_INFORM && p) + *--p = '/'; break; case 't': ifo->timeout = atoint(arg); |
