]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
The interface to delegate to is optional
authorRoy Marples <roy@marples.name>
Tue, 2 Apr 2013 19:50:50 +0000 (19:50 +0000)
committerRoy Marples <roy@marples.name>
Tue, 2 Apr 2013 19:50:50 +0000 (19:50 +0000)
if-options.c

index 47e8e6f7e06178b64737ecd0fdfee4416b3dcb13..b733fd37a4af4fd212d8c4f408d9b9b3c6a8e823 100644 (file)
@@ -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;