Fix #7559 - Fix possible null deref in r_lib_open_ptr

This commit is contained in:
pancake 2017-05-23 15:25:34 +02:00
parent a19ea41f03
commit 079fb3e379

View File

@ -266,6 +266,9 @@ R_API int r_lib_open_ptr (RLib *lib, const char *file, void *handler, RLibStruct
RListIter *iter;
int ret = false;
if (!handler || !lib || !file || !stru) {
return R_FAIL;
}
if (stru->version) {
if (strcmp (stru->version, R2_VERSION)) {
eprintf ("Module version mismatch %s (%s) vs (%s)\n",