svn commit: r225178 - projects/ino64/lib/libc/gen
Matthew D Fleming
mdf at FreeBSD.org
Thu Aug 25 17:05:55 UTC 2011
Author: mdf
Date: Thu Aug 25 17:05:55 2011
New Revision: 225178
URL: http://svn.freebsd.org/changeset/base/225178
Log:
Segfault on bad input like the original, as no callers are checking the
return code.
Requested by: Jilles Tjoelker
Modified:
projects/ino64/lib/libc/gen/dirfd.c
Modified: projects/ino64/lib/libc/gen/dirfd.c
==============================================================================
--- projects/ino64/lib/libc/gen/dirfd.c Thu Aug 25 15:51:54 2011 (r225177)
+++ projects/ino64/lib/libc/gen/dirfd.c Thu Aug 25 17:05:55 2011 (r225178)
@@ -43,8 +43,6 @@ __FBSDID("$FreeBSD$");
int
dirfd(DIR *dirp)
{
- if (dirp == NULL)
- return (-1);
return (_dirfd(dirp));
}
More information about the svn-src-projects
mailing list