Fix HTTPD protocol authentication

The HTTPD protocol mistakenly assumed that the `authenticator` parameter
of a listener would be NULL if the default authenticator is used.

Recent changes modified it so that the value is never NULL and
`NullAuthDeny` would be used for protocols which did not implement the
auth_default entry point.
This commit is contained in:
Markus Makela
2016-10-24 11:04:26 +03:00
parent db2cccbd8f
commit cff90ffee8
2 changed files with 6 additions and 5 deletions

View File

@ -272,7 +272,7 @@ serviceStartPort(SERVICE *service, SERV_LISTENER *port)
memcpy(&(port->listener->func), funcs, sizeof(GWPROTOCOL));
const char *authenticator_name = "NullAuth";
const char *authenticator_name = "NullAuthDeny";
if (port->authenticator)
{