mirror of
https://github.com/sheumann/hush.git
synced 2024-12-27 16:31:24 +00:00
insmod: fix detection of open failure
This commit is contained in:
parent
1045d00462
commit
04e458d435
@ -4275,7 +4275,7 @@ static int insmod_ng_main(int argc UNUSED_PARAM, char **argv)
|
|||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
len = MAXINT(ssize_t);
|
len = MAXINT(ssize_t);
|
||||||
map = xmalloc_open_read_close(filename, &len);
|
map = xmalloc_xopen_read_close(filename, &len);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (init_module(map, len, options) != 0)
|
if (init_module(map, len, options) != 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user