$OpenBSD: patch-src_dvd_udf_c,v 1.1 2012/10/04 07:23:17 brad Exp $

Check the return value for potential errors

--- src/dvd_udf.c.orig	Tue Sep 25 20:34:13 2012
+++ src/dvd_udf.c	Tue Sep 25 20:36:25 2012
@@ -611,7 +611,8 @@ static int UDFScanDir( dvd_reader_t *device, struct AD
             memcpy(FileICB, &tmpICB, sizeof(tmpICB));
             found = 1;
           }
-          UDFMapICB(device, tmpICB, &tmpFiletype, partition, &tmpFile);
+          if(!UDFMapICB(device, tmpICB, &tmpFiletype, partition, &tmpFile))
+            return 0;
         } else {
           if( !strcasecmp( FileName, filename ) ) {
             memcpy(FileICB, &tmpICB, sizeof(tmpICB));
