From: Subrata M. <su...@li...> - 2009-06-09 18:26:13
|
On Mon, 2009-06-08 at 13:33 +0200, Jiri Palecek wrote: > Hello, > > there was a crash in pan when the zoofile couldn't be opened; this patch fixes it by disallowing the zoo_open function to continue. > > Regards > Jiri Palecek > > Signed-off-by: Jiri Palecek <jpa...@we...> Thanks. Regards-- Subrata > > --- > pan/zoolib.c | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git a/pan/zoolib.c b/pan/zoolib.c > index 3e31733..72ddfb0 100644 > --- a/pan/zoolib.c > +++ b/pan/zoolib.c > @@ -104,6 +104,7 @@ zoo_open(char *zooname) > snprintf(zoo_error, ZELEN, > "Could not open zoo as \"%s\", errno:%d %s", > zooname, errno, strerror(errno)); > + return 0; > } > fclose(new_zoo); > new_zoo = fopen(zooname, "r+"); |