From: Glenn L McGrath Date: Fri, 13 Jul 2001 18:16:57 +0000 (-0000) Subject: Return NULL if file doesnt open in deb_extract X-Git-Tag: 0_60_0~71 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3d46224b7866089a62a992333681c9a81030bb0b;p=oweals%2Fbusybox.git Return NULL if file doesnt open in deb_extract --- diff --git a/libbb/unarchive.c b/libbb/unarchive.c index 852bd06a8..d10e60cbb 100644 --- a/libbb/unarchive.c +++ b/libbb/unarchive.c @@ -568,7 +568,9 @@ char *deb_extract(const char *package_filename, FILE *out_stream, /* open the debian package to be worked on */ deb_stream = wfopen(package_filename, "r"); - + if (deb_stream == NULL) { + return(NULL); + } /* set the buffer size */ setvbuf(deb_stream, NULL, _IOFBF, 0x8000);