summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorratchov <ratchov@openbsd.org>2011-11-16 08:03:34 +0000
committerratchov <ratchov@openbsd.org>2011-11-16 08:03:34 +0000
commit12ccc249121746b5c1a79f76589ac08fdb104839 (patch)
treed187edcd1d198204c7a2fff4cf3a19fa94a57a81
parentAdd word movement and editing command for command prompt editing, from (diff)
downloadwireguard-openbsd-12ccc249121746b5c1a79f76589ac08fdb104839.tar.xz
wireguard-openbsd-12ccc249121746b5c1a79f76589ac08fdb104839.zip
consider there's no dependency between two aprocs, if
one of them is NULL
-rw-r--r--usr.bin/aucat/aproc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/aucat/aproc.c b/usr.bin/aucat/aproc.c
index 4d8b32fd642..7a69b143b78 100644
--- a/usr.bin/aucat/aproc.c
+++ b/usr.bin/aucat/aproc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aproc.c,v 1.66 2011/05/26 07:26:36 ratchov Exp $ */
+/* $OpenBSD: aproc.c,v 1.67 2011/11/16 08:03:34 ratchov Exp $ */
/*
* Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
*
@@ -279,6 +279,8 @@ aproc_depend(struct aproc *p, struct aproc *dep)
if (p == dep)
return 1;
+ if (p == NULL)
+ return 0;
LIST_FOREACH(i, &p->ins, ient) {
if (i->wproc && aproc_depend(i->wproc, dep))
return 1;