From 49db2acef9a4cbf525fb544baa1aeade8f9b8818 Mon Sep 17 00:00:00 2001 From: David Cantrell Date: Fri, 20 Oct 2006 18:53:43 +0000 Subject: * loader2/loader.c (readNetInfo): Continue if vname or vparm are NULL (#211502). --- loader2/loader.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'loader2/loader.c') diff --git a/loader2/loader.c b/loader2/loader.c index 42a78fe4e..ecd0e9284 100644 --- a/loader2/loader.c +++ b/loader2/loader.c @@ -455,7 +455,12 @@ static void readNetInfo(struct loaderData_s ** ld) { /* break up var name and value */ if (strstr(buf, "=")) { vname = strtok(buf, "="); + if (vname == NULL) + continue; + vparm = strtok(NULL, "="); + if (vparm == NULL) + continue; if (!strncmp(vname, "IPADDR", 6)) { loaderData->ip = strdup(vparm); -- cgit