From 1aa248f52f0b5c72155a8f8423122a4b89bf3394 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 5 Sep 2003 12:35:06 +0000 Subject: [PATCH] Check for valid handle in call to zebra_pidfname --- index/zserver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index/zserver.c b/index/zserver.c index 8889dad..b4d6b89 100644 --- a/index/zserver.c +++ b/index/zserver.c @@ -1,4 +1,4 @@ -/* $Id: zserver.c,v 1.110 2003-08-21 10:30:04 adam Exp $ +/* $Id: zserver.c,v 1.111 2003-09-05 12:35:06 adam Exp $ Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003 Index Data Aps @@ -702,7 +702,7 @@ static void bend_stop(struct statserv_options_block *sob) #ifdef WIN32 #else - if (!sob->inetd) + if (!sob->inetd && sob->handle) { char pidfname[4096]; zebra_pidfname(sob->handle, pidfname); -- 1.7.10.4