summaryrefslogtreecommitdiff
path: root/gdhcp
diff options
context:
space:
mode:
Diffstat (limited to 'gdhcp')
-rw-r--r--gdhcp/client.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdhcp/client.c b/gdhcp/client.c
index 430ecc86..1919af79 100644
--- a/gdhcp/client.c
+++ b/gdhcp/client.c
@@ -913,6 +913,9 @@ static GList *get_option_value_list(char *value)
char *pos = value;
GList *list = NULL;
+ if (pos == NULL)
+ return NULL;
+
while ((pos = strchr(pos, ' ')) != NULL) {
*pos = '\0';