From: Subrata <sub...@us...> - 2009-06-09 17:59:50
|
Update of /cvsroot/ltp/ltp/pan In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv15879/ltp/pan Modified Files: zoolib.c Log Message: Return immediately when the ZOO file couldn't be opened, prevent crash later: 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. Signed-off-by: Jiri Palecek <jpa...@we...>. Index: zoolib.c =================================================================== RCS file: /cvsroot/ltp/ltp/pan/zoolib.c,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** zoolib.c 11 Nov 2008 05:15:52 -0000 1.7 --- zoolib.c 9 Jun 2009 17:59:46 -0000 1.8 *************** *** 105,108 **** --- 105,109 ---- "Could not open zoo as \"%s\", errno:%d %s", zooname, errno, strerror(errno)); + return 0; } fclose(new_zoo); |