changeset 1893:148a2c1b53b7 draft

The interface to delegate to is optional
author Roy Marples <roy@marples.name>
date Tue, 02 Apr 2013 19:50:50 +0000
parents be42469455e4
children ba2560bb382a
files if-options.c
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/if-options.c	Tue Apr 02 16:49:36 2013 +0000
+++ b/if-options.c	Tue Apr 02 19:50:50 2013 +0000
@@ -951,11 +951,8 @@
 		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;