summaryrefslogtreecommitdiffstats
path: root/usr.sbin/asf/asf.c
diff options
context:
space:
mode:
authorgrog <grog@FreeBSD.org>2005-09-21 05:20:03 +0000
committergrog <grog@FreeBSD.org>2005-09-21 05:20:03 +0000
commit3d1542ebf7fd234dc9c1bfe57dcfbda9e1141ca2 (patch)
treea97f92a434ca1f5a5f618ba98946d72c01947c22 /usr.sbin/asf/asf.c
parent0fd9f664d7add62626dcbe97b41e09f01d3ddab9 (diff)
downloadFreeBSD-src-3d1542ebf7fd234dc9c1bfe57dcfbda9e1141ca2.zip
FreeBSD-src-3d1542ebf7fd234dc9c1bfe57dcfbda9e1141ca2.tar.gz
Remove one possible way of shooting yourself in the foot.
Submitted by: Ulrich Sperlein <q@galgenberg.net>
Diffstat (limited to 'usr.sbin/asf/asf.c')
-rw-r--r--usr.sbin/asf/asf.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/asf/asf.c b/usr.sbin/asf/asf.c
index 704fcac..fddc363 100644
--- a/usr.sbin/asf/asf.c
+++ b/usr.sbin/asf/asf.c
@@ -247,6 +247,8 @@ main(int argc, char *argv[])
quad_t bssaddr;
tokens = tokenize(buf, token, MAXTOKEN);
+ if (tokens < 4)
+ continue;
base = strtoll(token[2], NULL, 16);
if (!dofind) {
strcpy(basetoken, token[4]);
@@ -261,7 +263,7 @@ main(int argc, char *argv[])
debugname);
} else {
char *modpath;
-
+
modpath = findmodule(strdup(modules_path), token[4]);
if (modpath == NULL)
continue;
@@ -306,7 +308,7 @@ main(int argc, char *argv[])
textaddr);
} else {
char *modpath;
-
+
modpath = findmodule(strdup(modules_path), token[4]);
if (modpath == NULL)
continue;
OpenPOWER on IntegriCloud