mirror of
https://libwebsockets.org/repo/libwebsockets
synced 2025-09-18 13:43:26 +00:00
plugins: extra INFO diagnostics for plugin rejection
This commit is contained in:
parent
c46db99775
commit
5de1b9726e
1 changed files with 9 additions and 3 deletions
|
@ -76,11 +76,15 @@ lws_plat_dlopen(struct lws_plugin **pplugin, const char *libpath,
|
|||
goto bail;
|
||||
}
|
||||
|
||||
if (strcmp(hdr->lws_build_hash, LWS_BUILD_HASH))
|
||||
if (strcmp(hdr->lws_build_hash, LWS_BUILD_HASH)) {
|
||||
lwsl_info("%s: build hash mismatch\n", __func__);
|
||||
goto bail;
|
||||
}
|
||||
|
||||
if (strcmp(hdr->_class, _class))
|
||||
if (strcmp(hdr->_class, _class)) {
|
||||
lwsl_info("%s: class mismatch\n", __func__);
|
||||
goto bail;
|
||||
}
|
||||
|
||||
/*
|
||||
* We don't already have one of these, right?
|
||||
|
@ -88,8 +92,10 @@ lws_plat_dlopen(struct lws_plugin **pplugin, const char *libpath,
|
|||
|
||||
pin = *pplugin;
|
||||
while (pin) {
|
||||
if (!strcmp(pin->hdr->name, hdr->name))
|
||||
if (!strcmp(pin->hdr->name, hdr->name)) {
|
||||
lwsl_info("%s: plugin seems duped\n", __func__);
|
||||
goto bail;
|
||||
}
|
||||
pin = pin->list;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue