From 17cb827b5ade04dddb99819f73f3671efdf8a3a1 Mon Sep 17 00:00:00 2001 From: christos Date: Sun, 19 Mar 2006 00:05:05 +0000 Subject: Coverity CID 1004: Fix NULL deref. --- monop/prop.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'monop/prop.c') diff --git a/monop/prop.c b/monop/prop.c index 2580a62d..4a5b2323 100644 --- a/monop/prop.c +++ b/monop/prop.c @@ -1,4 +1,4 @@ -/* $NetBSD: prop.c,v 1.9 2004/01/27 20:30:30 jsm Exp $ */ +/* $NetBSD: prop.c,v 1.10 2006/03/19 00:05:05 christos Exp $ */ /* * Copyright (c) 1980, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)prop.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: prop.c,v 1.9 2004/01/27 20:30:30 jsm Exp $"); +__RCSID("$NetBSD: prop.c,v 1.10 2006/03/19 00:05:05 christos Exp $"); #endif #endif /* not lint */ @@ -120,6 +120,8 @@ del_list(plr, head, op_sqr) break; else last_op = op; + if (op) == NULL) + return; if (last_op == NULL) *head = op->next; else { -- cgit v1.2.3-56-ge451