[libpng17] Restored a "return" statement accidentally deleted from pngset.c

This commit is contained in:
Glenn Randers-Pehrson 2013-01-22 07:03:51 -06:00
parent 5e8ba1cbbf
commit 2969375aa6

View File

@ -1385,6 +1385,7 @@ png_set_keep_unknown_chunks(png_structrp png_ptr, int keep,
if (num_chunks + old_num_chunks > UINT_MAX/5) if (num_chunks + old_num_chunks > UINT_MAX/5)
{ {
png_app_error(png_ptr, "png_set_keep_unknown_chunks: too many chunks"); png_app_error(png_ptr, "png_set_keep_unknown_chunks: too many chunks");
return;
} }
/* If these chunks are being reset to the default then no more memory is /* If these chunks are being reset to the default then no more memory is