From: Roy Marples Date: Tue, 2 Apr 2013 19:50:50 +0000 (+0000) Subject: The interface to delegate to is optional X-Git-Tag: v5.99.6~25 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=eade34fdddb81e30d4a37233d7a62707c45d5d84;p=thirdparty%2Fdhcpcd.git The interface to delegate to is optional --- diff --git a/if-options.c b/if-options.c index 47e8e6f7..b733fd37 100644 --- a/if-options.c +++ b/if-options.c @@ -951,11 +951,8 @@ parse_option(struct if_options *ifo, int opt, const char *arg) if (arg == NULL) break; fp = strchr(arg, ' '); - if (fp == NULL) { - syslog(LOG_ERR, "%s: invalid syntax", arg); - return -1; - } - *fp++ = '\0'; + if (fp) + *fp++ = '\0'; if ((s = parse_string((char *)_iaid, sizeof(_iaid), arg)) < 1) { syslog(LOG_ERR, "%s: invalid IAID", arg); return -1;