diff options
author | David Cantrell <dcantrell@redhat.com> | 2006-10-20 18:53:43 +0000 |
---|---|---|
committer | David Cantrell <dcantrell@redhat.com> | 2006-10-20 18:53:43 +0000 |
commit | 49db2acef9a4cbf525fb544baa1aeade8f9b8818 (patch) | |
tree | 27acf8b5b90f942df12c3034cb4f2363c0074dfd /loader2/loader.c | |
parent | 29b7c59039c5f4f9382570df9bbb49026be986db (diff) | |
download | anaconda-49db2acef9a4cbf525fb544baa1aeade8f9b8818.tar.gz anaconda-49db2acef9a4cbf525fb544baa1aeade8f9b8818.tar.xz anaconda-49db2acef9a4cbf525fb544baa1aeade8f9b8818.zip |
* loader2/loader.c (readNetInfo): Continue if vname or vparm are NULL
(#211502).
Diffstat (limited to 'loader2/loader.c')
-rw-r--r-- | loader2/loader.c | 5 |
1 files changed, 5 insertions, 0 deletions
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); |