embedthis/appweb-4 — pull request #15 by jchampio (2012-07-20 14:57:15+00:00)
Title: LoadModule on the same module twice can crash Appweb

If a module is not named identically to its library, loading that module twice will fail (and occasionally crash Appweb). For example,

```
LoadModule myModule myModule
LoadModule myModule myModule
```

works fine (the second statement is a no-op), but

```
LoadModule sslModule mod_ssl
LoadModule sslModule mod_ssl
```

will fail. Additionally, because mod_ssl is unloaded by the server on failure, it is possible that Appweb will try to continue accessing code in that module and crash.

The attached patch fixes this issue by looking up loaded modules by name instead of libname in maLoadModule.